This sorts in decending order yet it fails at the last. why?