1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-12 13:53:13 +00:00

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.
This commit is contained in:
Rizwan 2025-01-25 10:59:57 +05:30 committed by GitHub
parent 843f133f5e
commit 061168fb40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,6 @@ exports.indexes = function(source,operator,options) {
$tw.utils.pushTop(results,Object.keys(data));
}
});
results.sort();
return results;
};