gkeepapi
gkeepapi copied to clipboard
Notes ordering ?
Keep does not allow to order m'y notes by alphabetic order... Is there a way using this API?
I stumbled upon this SO post that might be helpful: https://stackoverflow.com/a/56726900/13642249
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()