A sorting function that sucks a l