Replaced the on-liner with a more readable sort function.
Removed unneded bits