Sorting that seems to work