Sort lines based on the text and not the checkboxes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bbbf82ff93
commit
e32c2391a0
|
@ -62,6 +62,10 @@ function sort(id, property, direction) {
|
|||
if (res[1] === 'DONE') return "B";
|
||||
return "D";
|
||||
}, direction)
|
||||
} else if (property === 'text') {
|
||||
children = _.orderBy(children, item => {
|
||||
return item.text.replace(/^#\[\[(TODO|DONE)]]\s*/, '')
|
||||
}, direction)
|
||||
} else {
|
||||
children = _.orderBy(children, property, direction)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user