I'm trying to sort my arrays of combinations i currently have. It is multidimensional array, but I only need to sort out the array that's inside for now.
for combination in myCombinations {
combination.sort({$0 < $1})
print("\(combination)")
}
Here's my code to sort out the array and here's my result.
["lys", "dyt", "lrt"]
["lys", "dyt", "gbc"]
["lys", "dyt", "lbc"]
I also got a warning that says "Result of call to 'sort' is unused" Could anyone help me out with this?
Thanks.