Skip to content

Commit

Permalink
Switch order between least recent and most recent
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiashu Huang committed Nov 9, 2023
1 parent 33543b1 commit cb0897b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Volunteer/FutureVolunteerEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const FutureVolunteerEvents = () => {
};

// Sorts events in order of most to least recent
const sortMostRecent = () => {
const sortLeastRecent = () => {
if (!events) return;
const copy = [...events];
copy.sort(
Expand All @@ -80,7 +80,7 @@ const FutureVolunteerEvents = () => {
};

// Sorts events in order of least to most recent
const sortLeastRecent = () => {
const sortMostRecent = () => {
if (!events) return;
const copy = [...events];
copy.sort(
Expand Down

0 comments on commit cb0897b

Please sign in to comment.