mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
fixes to stable sorting
This commit is contained in:
@@ -473,7 +473,7 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget {
|
||||
|
||||
async renderOwnedAttributes(ownedAttributes, saved) {
|
||||
// attrs are not resorted if position changes after the initial load
|
||||
ownedAttributes.sort((a, b) => a.position < b.position ? -1 : 1);
|
||||
ownedAttributes.sort((a, b) => a.position - b.position);
|
||||
|
||||
let htmlAttrs = (await attributeRenderer.renderAttributes(ownedAttributes, true)).html();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user