Use alias aware sorting in glances_network

This commit is contained in:
Tomáš Vyčítal 2018-02-12 23:08:37 +01:00
parent 7a47c32341
commit 3a68e85d5b
No known key found for this signature in database
GPG Key ID: DE75FBFE77EB4768

View File

@ -289,7 +289,7 @@ class Plugin(GlancesPlugin):
msg = '{:>7}'.format('Tx/s')
ret.append(self.curse_add_line(msg))
# Interface list (sorted by name)
for i in sorted(self.stats, key=operator.itemgetter(self.get_key())):
for i in self.sorted_stats('interface_name'):
# Do not display interface in down state (issue #765)
if ('is_up' in i) and (i['is_up'] is False):
continue