Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit f330706

Browse files
tabcataphelionz
authored andcommitted
sort todos by title
1 parent 1d7b328 commit f330706

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ var app = app || {};
103103
default:
104104
return true;
105105
}
106-
}, this);
106+
}, this)
107+
.sort((o, t) => o.title.toLowerCase().localeCompare(t.title.toLowerCase()));
107108

108109
var todoItems = shownTodos.map(function (todo) {
109110
return (

0 commit comments

Comments
 (0)