Fix transports order and Transport\Socket

Similar to https://github.com/joomla/joomla-cms/pull/3616