Skip to content

Build your personal knowledge base with Trilium Notes

keep sorting for content hash computation backwards compatible

zadamb6b6d11ef71d
diff --git a/src/services/content_hash.js b/src/services/content_hash.js
index 51310ab182..4b9f4f67fc 100644
--- a/src/services/content_hash.js
+++ b/src/services/content_hash.js
@@ -37,7 +37,7 @@ function getEntityHashes() {
// sorting is faster in memory
// sorting by entityId is enough, hashes will be segmented by entityName later on anyway
- hashRows.sort((a, b) => a[0] < b[0] ? -1 : 1);
+ hashRows.sort((a, b) => a[1] < b[1] ? -1 : 1);
const hashMap = {};