From 138eac62fd82b1b9d330f73f91683ed4192be302 Mon Sep 17 00:00:00 2001 From: AmbrishRamachandiran Date: Wed, 18 Oct 2023 17:21:00 +0530 Subject: [PATCH] Name changes Signed-off-by: AmbrishRamachandiran --- plugins/bazaar/src/components/SortView/SortView.tsx | 4 ++-- plugins/bazaar/src/util/sortMethods.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); };