Fixes the ordering of sockets.