home
·
contact
·
privacy
projects
/
stable_plom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
461b804
)
Preverse previous sort order where new one would not make a difference.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 24 Aug 2024 05:58:49 +0000
(07:58 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 24 Aug 2024 05:58:49 +0000
(07:58 +0200)
browser.py
patch
|
blob
|
history
diff --git
a/browser.py
b/browser.py
index f2886261394dec2ac86efc788e6436641f677999..3d43d05ad8729709713289de5f0b17d88f0f92bc 100755
(executable)
--- a/
browser.py
+++ b/
browser.py
@@
-133,8
+133,8
@@
class Window(Gtk.ApplicationWindow):
def sort(self, attr_name):
self.list_store.remove_all()
- for file_item in sorted(self.unsorted,
-
key=lambda i: getattr(i, attr_name))
:
+ self.unsorted.sort(key=lambda i: getattr(i, attr_name))
+
for file_item in self.unsorted
:
self.list_store.append(file_item)
self.update_selected()