Applied a sort to the list of ports so that all the front ports will be listed first and then the rear. #387