Repository navigation
Conversation
When built with Qt, compare titles, artists, albums etc. and file names
with QCollator for the system locale (LC_COLLATE/LANG). Numeric mode
and case insensitivity keep the existing behavior of str_compare()
("Track 2" before "Track 10"), which is also used to break ties so that
the order stays deterministic. Builds without Qt keep using
str_compare().
Qt fix for audacious-media-player#1781
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Playlist sorting compared strings byte by byte (folding only ASCII
case), so non-ASCII text ended up in code point order: Chinese was not
sorted by Pinyin, Japanese katakana was separated from hiragana, and
accented Latin letters such as "É" were sorted after "Z".
Last release:

With this patch applied:

When built with Qt, compare titles, artists, albums etc. and file names with QCollator for the system locale (LC_COLLATE/LANG). Numeric mode and case insensitivity keep the existing behavior of str_compare() ("Track 2" before "Track 10"), which is also used to break ties so that the order stays deterministic. Builds without Qt keep using str_compare().
Qt fix for #1781