Name changes
Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user