mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix: compare first letter of title if sort by === title
This commit is contained in:
@@ -15,7 +15,12 @@ import {
|
|||||||
const getSortSelectors = (options) => [
|
const getSortSelectors = (options) => [
|
||||||
{ desc: (t) => t.conflicted },
|
{ desc: (t) => t.conflicted },
|
||||||
{ desc: (t) => t.pinned },
|
{ desc: (t) => t.pinned },
|
||||||
{ [options.sortDirection]: (item) => item[options.sortBy] },
|
{
|
||||||
|
[options.sortDirection]: (item) => {
|
||||||
|
if (options.sortBy === "title") return item.title[0].toUpperCase();
|
||||||
|
return item[options.sortBy];
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const TIMESTAMPS = {
|
const TIMESTAMPS = {
|
||||||
|
|||||||
Reference in New Issue
Block a user