sort in reverse order so we don't need to reverse later