improved trip duplication, block overlap and trip shape tests by ensuring data is sorted before tests are run