gkeepapi icon indicating copy to clipboard operation
gkeepapi copied to clipboard

Notes ordering ?

Open fabads opened this issue 9 months ago • 1 comments

Keep does not allow to order m'y notes by alphabetic order... Is there a way using this API?

fabads avatar Apr 22 '25 16:04 fabads

I stumbled upon this SO post that might be helpful: https://stackoverflow.com/a/56726900/13642249

kyrlon avatar May 12 '25 14:05 kyrlon

The sort field allows you to specify the order. Something like the following should do what you want:

notes = keep.all()
notes.sort(key=lambda x: x.title)
for i, note in enumerate(notes):
    note.sort = i * 1000
keep.sync()

kiwiz avatar Aug 20 '25 02:08 kiwiz