Trying to make the sort more efficient.
This is a slight improvement (1.1 sec to 0.8 secs on Cedric's phone), but still not ideal
Need to change the string comparisons to numbers but I'm confused with all those Swift variable thingies... So stephane, this is for you to handle ;-)