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

✨ Add sort method to Collections #1276

Merged
merged 5 commits into from
Jan 16, 2025
Merged

Conversation

valzargaming
Copy link
Member

@valzargaming valzargaming commented Jan 16, 2025

This pull request introduces a new sorting functionality to the CollectionInterface and CollectionTrait in the src/Discord/Helpers directory. The most important changes include the addition of a sort method, which allows sorting of collection items using a callback or predefined sorting order.

New sorting functionality:

@valzargaming valzargaming force-pushed the usort-method-for-Collections branch from 787c59f to e5b9a5d Compare January 16, 2025 19:57
@valzargaming valzargaming changed the title usort method for Collections uasort method for Collections Jan 16, 2025
@valzargaming valzargaming changed the title uasort method for Collections sort method for Collections Jan 16, 2025
@valzargaming valzargaming requested a review from Log1x January 16, 2025 20:29
@valzargaming valzargaming changed the title sort method for Collections ✨ Add sort method to Collections Jan 16, 2025
@valzargaming valzargaming merged commit c4f00a4 into master Jan 16, 2025
1 of 2 checks passed
@valzargaming valzargaming deleted the usort-method-for-Collections branch January 16, 2025 20:34
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