From 061168fb40b50e9efd3b0fe9e2587bfbdd014246 Mon Sep 17 00:00:00 2001 From: Rizwan Date: Sat, 25 Jan 2025 10:59:57 +0530 Subject: [PATCH] Indexes operator: Return original order Current behavior of indexes operator is that it returns a sorted list of indexes of data tiddler. There is no way to return the original order of indexes. This modification returns the indexes in the original order defined in the data tiddler. Sorting can be achieved by sort operator downstream in the filter run. --- core/modules/filters/indexes.js | 1 - 1 file changed, 1 deletion(-) diff --git a/core/modules/filters/indexes.js b/core/modules/filters/indexes.js index 3bbb22659..a2a207ed6 100644 --- a/core/modules/filters/indexes.js +++ b/core/modules/filters/indexes.js @@ -23,7 +23,6 @@ exports.indexes = function(source,operator,options) { $tw.utils.pushTop(results,Object.keys(data)); } }); - results.sort(); return results; };