mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-23 18:53:36 +02:00
Desktop: Resolves #5819: Allow sorting by due date and completion date in detailed note list
This commit is contained in:
parent
5b4477f7bd
commit
ce451c5850
@ -943,7 +943,7 @@ class Setting extends BaseModel {
|
||||
label: () => _('Sort notes by'),
|
||||
options: () => {
|
||||
const Note = require('./Note').default;
|
||||
const noteSortFields = ['user_updated_time', 'user_created_time', 'title', 'order'];
|
||||
const noteSortFields = ['user_updated_time', 'user_created_time', 'title', 'order', 'todo_due', 'todo_completed'];
|
||||
const options: any = {};
|
||||
for (let i = 0; i < noteSortFields.length; i++) {
|
||||
options[noteSortFields[i]] = toTitleCase(Note.fieldToLabel(noteSortFields[i]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user