diff --git a/deluge/ui/gtkui/listview.py b/deluge/ui/gtkui/listview.py index 6b892b156..e1d42659c 100644 --- a/deluge/ui/gtkui/listview.py +++ b/deluge/ui/gtkui/listview.py @@ -194,7 +194,8 @@ class ListView(object): # Using the default sort column elif self.default_sort_column_id: self.model_filter.set_sort_column_id(self.default_sort_column_id, gtk.SORT_ASCENDING) - self.model_filter.set_default_sort_func(lambda x: None) + self.model_filter.set_default_sort_func( + self.generic_sort_func, self.get_column_index('Added')[0]) def get_sort_column_from_state(self): """Find the first (should only be one) state with sort enabled""" diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index c87c197d1..bc06cd95d 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -265,6 +265,7 @@ class TorrentView(ListView, component.Component): _('Name'), status_field=['state', 'name'], function=funcs.cell_data_statusicon, + sort_func=str_nocase_sort, default_sort=True, ) self.add_func_column(