nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 605818411ac79bf85c945dd579e14669c2fb8b24
parent 8df81bd4383e76510be68d63573fd94db967fc72
Author: Samuel Walladge <samuel@swalladge.id.au>
Date:   Tue, 21 Feb 2017 21:20:27 +1030

improve tag sorting order

Diffstat:
Msimplenote_cli/utils.py | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/simplenote_cli/utils.py b/simplenote_cli/utils.py @@ -150,9 +150,8 @@ def sort_by_title_pinned(a): def sort_notes_by_tags(notes, pinned_ontop=False): notes.sort(key=lambda i: (pinned_ontop and not note_pinned(i.note), - len(i.note.get('tags')) == 0, - i.note.get('tags', []), - -float(i.note.get('modifydate', 0)))) + i.note.get('tags'), + get_note_title(i.note))) def sort_by_modify_date_pinned(a): if note_pinned(a.note):