fix random ordering in search, fixes #2047

This commit is contained in:
zadam 2021-06-29 20:54:56 +02:00
parent 995e6c2fef
commit 61e78858bc

View File

@ -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()]];