Name changes

Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
AmbrishRamachandiran
2023-10-18 17:21:00 +05:30
parent 9f4ae86b0c
commit 138eac62fd
2 changed files with 3 additions and 3 deletions
@@ -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);
+1 -1
View File
@@ -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);
};