Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

refactor: cleanup

thecodrr59e61d6f0a04
diff --git a/packages/core/api/database.js b/packages/core/api/database.js
index 12b4cb68c..d37925661 100644
--- a/packages/core/api/database.js
+++ b/packages/core/api/database.js
@@ -69,12 +69,11 @@ class Database {
let notes = this.getNotes();
switch (by) {
case "abc":
- let groups = groupBy(
+ return groupBy(
notes.sort((a, b) => a.title.localeCompare(b.title)),
note => note.title[0].toUpperCase(),
special
);
- return groups;
case "month":
return groupBy(
notes,