PT-47609155 CON-433 - Sort list of locations such as the primary is always first. Then, list is sorted by location_id.
code review: Alex M