sorting the radiogatewayid before displaying a,b,c to keep the same gateways as a,b,c