Added back the sort code

which for some reason, keeps disappearing!