mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
core: add extensive grouping/sorting tests
This commit is contained in:
@@ -527,7 +527,8 @@ export class FilteredSelector<T extends Item> {
|
||||
const sortBy: Set<SortOptions["sortBy"]> = new Set();
|
||||
if (isGroupOptions(options)) {
|
||||
if (options.groupBy === "abc") sortBy.add("title");
|
||||
else if (options.sortBy === "title") sortBy.add("dateCreated");
|
||||
else if (options.sortBy === "title" && options.groupBy !== "none")
|
||||
sortBy.add("dateCreated");
|
||||
}
|
||||
sortBy.add(options.sortBy);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user