mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-08 02:03:03 -08:00
Fix crash when sorting by non-string fields
tags, list, created, modified are not stored as strings by default. Fixes #5701
This commit is contained in:
parent
fe12a4adbf
commit
dbd3f835bf
1 changed files with 2 additions and 2 deletions
|
|
@ -374,12 +374,12 @@ exports.sortTiddlers = function(titles,sortField,isDescending,isCaseSensitive,is
|
|||
var tiddlerA = self.getTiddler(a),
|
||||
tiddlerB = self.getTiddler(b);
|
||||
if(tiddlerA) {
|
||||
a = tiddlerA.fields[sortField] || "";
|
||||
a = tiddlerA.getFieldString(sortField) || "";
|
||||
} else {
|
||||
a = "";
|
||||
}
|
||||
if(tiddlerB) {
|
||||
b = tiddlerB.fields[sortField] || "";
|
||||
b = tiddlerB.getFieldString(sortField) || "";
|
||||
} else {
|
||||
b = "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue