mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
fixes to stable sorting
This commit is contained in:
@@ -83,7 +83,7 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
|
||||
// attrs are not resorted if position changes after the initial load
|
||||
// promoted attrs are sorted primarily by order of definitions, but with multi-valued promoted attrs
|
||||
// the order of attributes is important as well
|
||||
ownedAttributes.sort((a, b) => a.position < b.position ? -1 : 1);
|
||||
ownedAttributes.sort((a, b) => a.position - b.position);
|
||||
|
||||
if (promotedDefAttrs.length === 0) {
|
||||
this.toggleInt(false);
|
||||
|
||||
Reference in New Issue
Block a user