Fix trip plan sorting.