I'm using this code in the Playground as an example:
let videosUnsorted = ["C Video", "G Video", "L Video", "T Video", "S Video ", "P Video", "A Video", "Z Video", "R Video"]
let videosValues = [1, 2, 3, 4, 5, 6, 7, 8, 9]
let sorted = videosUnsorted.sorted(by: {$0.videosValues > $1.videosValues})
print(sorted)
but it's giving me this error:
Argument passed to call that takes no arguments
I tried the following but it's not what I'm trying to accomplish. It's only sorting by the elements in the same array:
let sorted = videosUnsorted.sorted(by: {$0.1 < $1.2})