passing tests for location sorting