I want to know that how can we use sort or sorted function for multidimensional array in Swift?
For example theirs an array:
[
[5, "test888"],
[3, "test663"],
[2, "test443"],
[1, "test123"]
]
And I want to sort it via the first ID's low to high:
[
[1, "test123"],
[2, "test443"],
[3, "test663"],
[5, "test888"]
]
So how can we do this? Thanks!