improve sort_ports helper
improve sort_ports helper

Use precompiled regexp and change the unnecessary lambda to the function name

lukasjuhrich/pycroft,agdsn/pycroft,agdsn/pycroft,agdsn/pycroft,lukasjuhrich/pycroft,lukasjuhrich/pycroft,agdsn/pycroft,lukasjuhrich/pycroft,agdsn/pycroft