fix #1289: crash on Auto sorting mode

This commit is contained in:
antelle 2019-10-08 19:41:08 +02:00
parent f1a632fb52
commit 3c6c929854
2 changed files with 5 additions and 2 deletions

View File

@ -17,10 +17,10 @@ class EntryCollection extends Collection {
'-created': Comparators.dateComparator('created', false),
'updated': Comparators.dateComparator('updated', true),
'-updated': Comparators.dateComparator('updated', false),
'-attachments'(x, y) {
'-attachments': (x, y) => {
return this.attachmentSortVal(x).localeCompare(this.attachmentSortVal(y));
},
'-rank': Comparators.rankComparator()
'-rank': Comparators.rankComparator().bind(this)
};
defaultComparator = 'title';

View File

@ -1,5 +1,8 @@
Release notes
-------------
##### v1.11.7 (2019-10-08)
`-` fix #1289: crash on Auto sorting mode
##### v1.11.6 (2019-10-04)
`-` fix #1285: issues in moving entries across files