Trying to sort to ending soonest never works