-
Notifications
You must be signed in to change notification settings - Fork 737
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
Arsenal - Add Sorting Algorithms #7719
Conversation
The classnames shouldn't have used parentheses. |
Where? |
@jonpas WIP can be removed, this is ready for review |
yeah ready for review now, not WIP |
@@ -0,0 +1,64 @@ | |||
class GVAR(sorts) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the scope
entry and as a result the sortBase
class necessary? I think its reasonable to have all sorting algorithms defined here be public.
Also, fix spaces after commas in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to add properties in the future this class would be useful, it also keeps it inline with the rest of arsenal
Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
8f53dfb
to
a1a0bb0
Compare
There is still some areas that can be cleaned up, including the magic numbers. |
Ready for review, WIP can be removed |
cc5defc
to
4818a38
Compare
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
When merged this pull request will:
Theoretically this could support multiple sorting algorithms at once. Ex. Sort by fire rate, then sort by weight, then alphabetically. I can't think of a nice way to implement that on the UI side. It will however still sub sort alphabetically, Ex. Sort by fire rate, sort weapons with the same fire rate alphabetically.
Images
Old Alphabetical SortNotice how the
AK-15
is separated from it's variants by the GL version.New Alphabetical Sort