sort locations formatting