We used sort_by for this. Mostly because I am not sure what <=> does or means