mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
fix orderby with multiple labels, closes #4220
This commit is contained in:
@@ -11,7 +11,7 @@ function lex(str) {
|
||||
let currentWord = '';
|
||||
|
||||
function isSymbolAnOperator(chr) {
|
||||
return ['=', '*', '>', '<', '!', "-", "+", '%'].includes(chr);
|
||||
return ['=', '*', '>', '<', '!', "-", "+", '%', ','].includes(chr);
|
||||
}
|
||||
|
||||
function isPreviousSymbolAnOperator() {
|
||||
@@ -128,6 +128,10 @@ function lex(str) {
|
||||
}
|
||||
}
|
||||
|
||||
if (chr === ',') {
|
||||
continue;
|
||||
}
|
||||
|
||||
currentWord += chr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user