summarylogtreecommitdiffstats
path: root/002_sort_found_notes.patch
blob: 6053037b74d76ca9639a67d7fbb936e6e008f4df (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/urwid_ui.py	2016-03-14 02:56:30.348210225 +0100
+++ b/urwid_ui.py	2016-03-14 02:56:38.421447101 +0100
@@ -409,7 +409,7 @@
 
         # Sort the notes.
         # TODO: Support different sort orderings.
-        matching_notes.sort(key=lambda x: x.mtime, reverse=True)
+        matching_notes.sort(key=lambda x: x.title)
 
         # Tell the list box to show only the matching notes.
         self.list_box.filter(matching_notes)