Merge pull request #19 from streetwriters/fix-group-by-title

fix items sequence in 'abc' grouping
This commit is contained in:
Abdullah Atta
2021-12-02 13:09:27 +05:00
committed by GitHub

View File

@@ -14,7 +14,7 @@ const getSortSelectors = (options) => [
{
[options.sortDirection]: (item) => {
if (options.sortBy === "title")
return getFirstCharacter(item.alias || item.title);
return item.alias || item.title;
return item[options.sortBy];
},
},