Add location sorting