Sort and local IP