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

ExprIndices - fix strings not sorting alphabetically #6495

Merged
merged 6 commits into from
Mar 30, 2024

Conversation

ShaneBeee
Copy link
Contributor

@ShaneBeee ShaneBeee commented Mar 14, 2024

Description

This PR aims to fix the alphabetically sorted issue with the sorted indices expression.

NOTE:
This changes the behaviour of ExprSortedList by sorting alphabetically ignoring case.
Previous:

A
B
C
a
b
c

NEW:

A
a
B
b
C
c

Target Minecraft Versions: any
Requirements: none
Related Issues: none #6492

@UnderscoreTud
Copy link
Member

What do you think about mimicking the comparison behavior of ExprSortedList?

@ShaneBeee
Copy link
Contributor Author

ShaneBeee commented Mar 15, 2024

What do you think about mimicking the comparison behavior of ExprSortedList?

I could probably do something like that, altho that doesn't ignore cases in strings

UPDATE: Took Ted's suggestion, and mildly updated ExprSortedList as well

@AyhamAl-Ali AyhamAl-Ali added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. breaking changes Pull or feature requests that contain breaking changes (API, syntax, etc.) labels Mar 15, 2024
@AyhamAl-Ali
Copy link
Member

Tests needs to be fixed 😬

@AyhamAl-Ali AyhamAl-Ali added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Mar 29, 2024
@Moderocky Moderocky merged commit bfdadaa into SkriptLang:dev/patch Mar 30, 2024
4 checks passed
@ShaneBeee ShaneBeee deleted the fix/string-compare-sort branch March 30, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes Pull or feature requests that contain breaking changes (API, syntax, etc.) bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants