Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAK-49636 announcementswc Add sorting options #12846

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

adrianfish
Copy link
Contributor

this.data.sort((a1, a2) => a1.siteTitle.localeCompare(a2.subject));
break;
case SITE_Z_TO_A:
this.data.sort((a1, a2) => a2.siteTitle.localeCompare(a1.subject));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.data.sort((a1, a2) => a2.siteTitle.localeCompare(a1.siteTitle));

@adrianfish
Copy link
Contributor Author

@jesusmmp Thanks for the review :)

@adrianfish adrianfish merged commit a446884 into sakaiproject:master Sep 11, 2024
5 checks passed
@adrianfish adrianfish deleted the SAK-49636 branch September 11, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants