Sorting works as expected again