diff --git a/plugins/bazaar/src/components/SortView/SortView.tsx b/plugins/bazaar/src/components/SortView/SortView.tsx index e0b591732e..aa310ba55d 100644 --- a/plugins/bazaar/src/components/SortView/SortView.tsx +++ b/plugins/bazaar/src/components/SortView/SortView.tsx @@ -31,7 +31,7 @@ import { sortByDate, sortByMembers, sortByTitle, - sortByDecendingTitle, + sortByTitleDescending, } from '../../util/sortMethods'; import { SortMethodSelector } from '../SortMethodSelector'; import { fetchCatalogItems } from '../../util/fetchMethods'; @@ -86,7 +86,7 @@ export const SortView = (props: SortViewProps) => { const sortMethods = [ sortByDate, sortByTitle, - sortByDecendingTitle, + sortByTitleDescending, sortByMembers, ]; const [sortMethodNbr, setSortMethodNbr] = useState(0); diff --git a/plugins/bazaar/src/util/sortMethods.ts b/plugins/bazaar/src/util/sortMethods.ts index d23ad177f1..2a9b7969b3 100644 --- a/plugins/bazaar/src/util/sortMethods.ts +++ b/plugins/bazaar/src/util/sortMethods.ts @@ -30,7 +30,7 @@ export const sortByTitle = (a: BazaarProject, b: BazaarProject) => { return a.title.localeCompare(b.title); }; -export const sortByDecendingTitle = (a: BazaarProject, b: BazaarProject) => { +export const sortByTitleDescending = (a: BazaarProject, b: BazaarProject) => { return b.title.localeCompare(a.title); };