Converts an unordered (e.g. grepped) network ports to a condensed range/list that is suitable for nmap and other tools.