[ad_1]
Does this return what you want?
[[1,2] , [3,7] , [2,9] , [10,19]].sorted(by: {$0[0]<$1[0]})
3
[ad_2]
solved Is there a way to sort an array by a subarray’s index in Swift?
[ad_1]
Does this return what you want?
[[1,2] , [3,7] , [2,9] , [10,19]].sorted(by: {$0[0]<$1[0]})
3
[ad_2]
solved Is there a way to sort an array by a subarray’s index in Swift?