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

fix: the server selector types provide the correct comparators #1111

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

0utplay
Copy link
Member

@0utplay 0utplay commented Feb 4, 2023

Motivation

The server selector types were not sorting how they are supposed to. The HIGHEST_PLAYERS comparator would sort for the lowerst players and vice-versa.

Modification

Inverted the comparison order by switching the comparator of the HIGHEST_PLAYERS to the LOWEST_PLAYERS and using Comparator#reversed

Result

The comparators provide the correct comparison result

@0utplay 0utplay added v: 4.X This pull should be included in the 4.0 release t: fix A pull request introducing a fix for a bug. in: module An issue/pull request releated to one of the internal modules labels Feb 4, 2023
@0utplay 0utplay added this to the 4.0.0-RC8 milestone Feb 4, 2023
@0utplay 0utplay self-assigned this Feb 4, 2023
@0utplay 0utplay requested a review from derklaro February 4, 2023 14:35
@derklaro derklaro merged commit 0a393a0 into nightly Feb 8, 2023
@derklaro derklaro deleted the fix/comparator branch February 8, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: module An issue/pull request releated to one of the internal modules t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants