Location sorting working