fixed wrong text alignment for long port names
added sorting for port names and unit parameters