added location sort feature