Sorts by type:name within categories: ports, components, 0, 1