Sort lines based on the text and not the checkboxes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2021-08-11 22:33:04 +02:00
parent bbbf82ff93
commit e32c2391a0

View File

@ -62,6 +62,10 @@ function sort(id, property, direction) {
if (res[1] === 'DONE') return "B"; if (res[1] === 'DONE') return "B";
return "D"; return "D";
}, direction) }, direction)
} else if (property === 'text') {
children = _.orderBy(children, item => {
return item.text.replace(/^#\[\[(TODO|DONE)]]\s*/, '')
}, direction)
} else { } else {
children = _.orderBy(children, property, direction) children = _.orderBy(children, property, direction)
} }