I have an array of structs that I am looking to sort from highest to lowest based on Double value stored as a String. This is the way I'm currently doing it:
users.sort { (lhs, rhs) in return lhs.weekFTC > rhs.weekFTC }
This is returning the order based on the first number rather than the full number. Is there a better way of accomplishing this?
Doubleas aString? And what happens when the values are equal?