sort the address properly