sort inventory ports listening for more usable reporting

(cherry picked from commit f1296649083740211647ef5a1dc9260ad19d618d)