Skip to content

Commit

Permalink
fix: sorting of notes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronczichon committed Jun 21, 2024
1 parent 15b8c5d commit b197274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/functions/notes.func.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const fetchNotes = async () => {
const aCreated = new Date(a.date_created);
const bCreated = new Date(b.date_created);

return aCreated > bCreated ? 1 : -1;
return aCreated < bCreated ? 1 : -1;
});
return items;
}

0 comments on commit b197274

Please sign in to comment.