mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix random ordering in search, fixes #2047
This commit is contained in:
parent
995e6c2fef
commit
61e78858bc
@ -114,7 +114,7 @@ class ValueExtractor {
|
||||
cursor = cursor.children[0];
|
||||
}
|
||||
else if (cur() === 'random') {
|
||||
return Math.random();
|
||||
return Math.random().toString(); // string is expected for comparison
|
||||
}
|
||||
else if (cur() in PROP_MAPPING) {
|
||||
return cursor[PROP_MAPPING[cur()]];
|
||||
|
Loading…
x
Reference in New Issue
Block a user