Skip to content

Commit

Permalink
Specify order "desc" and orderBy "dateModified"
Browse files Browse the repository at this point in the history
  • Loading branch information
roslynwythe committed Nov 3, 2024
1 parent baa223f commit 5c515a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Projects/ProjectsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ const ProjectsPage = ({ contentContainerRef }) => {
const indexOfFirstPost = indexOfLastPost - projectsPerPage;
const sortedProjects = stableSort(
projects.filter(p => filter(p, criteria)),
getComparator(order, orderBy)
getComparator("desc", "dateModified")
);
const currentProjects = sortedProjects.slice(
indexOfFirstPost,
Expand Down

0 comments on commit 5c515a2

Please sign in to comment.