Solve memory leak on sorting ports for "show vlan" command.