From 62da3d119ec09a0f5277cbaa2edb5d02b93b680b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 15 Jul 2020 21:07:13 +0530 Subject: [PATCH] When showing all annotations in browser order newest to oldest --- src/calibre/db/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/backend.py b/src/calibre/db/backend.py index ab2c5c030f..3b4741f1f6 100644 --- a/src/calibre/db/backend.py +++ b/src/calibre/db/backend.py @@ -1844,7 +1844,7 @@ class DB(object): if annotation_type: data.append(annotation_type) q += ' annot_type = ? ' - q += ' ORDER BY timestamp' + q += ' ORDER BY timestamp DESC ' count = 0 for (rowid, book_id, fmt, user_type, user, annot_data) in self.execute(q, tuple(data)): try: