Context Pane: Use getNoteTitle()

ad36c9fb2a (r71022779)
This commit is contained in:
Abe Jellinek 2022-04-11 13:36:03 -07:00
parent b8b1f8be55
commit a5fc8b859c

View file

@ -548,8 +548,8 @@ var ZoteroContextPane = new function () {
else {
let collation = Zotero.getLocaleCollation();
notes.sort((a, b) => {
let aTitle = Zotero.Items.getSortTitle(a.getField('title'));
let bTitle = Zotero.Items.getSortTitle(b.getField('title'));
let aTitle = Zotero.Items.getSortTitle(a.getNoteTitle());
let bTitle = Zotero.Items.getSortTitle(b.getNoteTitle());
return collation.compareString(1, aTitle, bTitle);
});
}