Sorting now works