MinimServer Forum

Full Version: Sorting Order of tags changed after last update
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Obviously the last update changed something regarding sorting order in tags views.

I have multi tagged Classical albums to have a kind of subgenres logic within the Genre "Classical", e.g "Classical\\~Opera". Subgenres start with a ~ sign in order to have sorted the subgenres behind the main Genres in the Genre tag list; now they appear before the main Genres.

Any ideas how to return to the old behaviour without changing all subgenres?

Regards Rainer
(05-08-2014 08:34)bruemmer Wrote: [ -> ]Obviously the last update changed something regarding sorting order in tags views.

I have multi tagged Classical albums to have a kind of subgenres logic within the Genre "Classical", e.g "Classical\\~Opera". Subgenres start with a ~ sign in order to have sorted the subgenres behind the main Genres in the Genre tag list; now they appear before the main Genres.

Any ideas how to return to the old behaviour without changing all subgenres?

Regards Rainer

The collation sorting table was changed to conform to the standard Unicode Collation Algorithm for the first 256 characters. This algorithm places special characters (such as ~) before letter characters.

Unicode characters with a value of 0x0100 or greater are still sorted after letter characters, so you can use one of these characters instead of ~ to get the behaviour that you want. See this page for a list of characters in this range.
(05-08-2014 08:34)bruemmer Wrote: [ -> ]Any ideas how to return to the old behaviour without changing all subgenres?

While Simon's reply explains the underlying issue very clearly, it does not specifically answer this question, though the answer clearly is, "You can't".

Fortunately (at least if you are a Windows user), MP3Tag provides a very straightforward solution. In MP3 Tag (which can select folders recursively, that is including all sub-folders), you can select the whole of your music library at one go, though if your library is large, the MP3Tag grid will take a long time to populate (so you may want to deal with larger libraries in several chunks). Select one line of the Grid, then press Ctrl-A to select the whole of the Grid. Quick Actions (Shift-Alt-6) includes a Replace action. In the present instance, in the dialog for this action, you would select the Genre field, '~' as the character to replace, and your replacement character. All relevant music files will then be changed in one go. However, press the 'Save' button before you leave the selection, just to be sure. And MP3Tag has an Undo command (the standard Ctrl-Z) if you mess things up.

Unfortunately, as is clear from the table to which Simon linked, selecting a replacement character for the '~' may not be entirely straightforward if you are working in a language other than English, as many accented characters have values higher than 0x0100. If you can avoid using genre or sub-genre names that begin with accented or modified characters, Simon's advice will work. Indeed, there are some useful possible replacement characters in the 0x00A0/0x00B0 range (such as '¶') which come before 0x0100 but after the standard alphanumerics.

I hope this helps.

David
(06-08-2014 12:24)DavidHB Wrote: [ -> ]Unfortunately, as is clear from the table to which Simon linked, selecting a replacement character for the '~' may not be entirely straightforward if you are working in a language other than English, as many accented characters have values higher than 0x0100. If you can avoid using genre or sub-genre names that begin with accented or modified characters, Simon's advice will work. Indeed, there are some useful possible replacement characters in the 0x00A0/0x00B0 range (such as '¶') which come before 0x0100 but after the standard alphanumerics.

The new collation table will also sort these characters before letters.

This tilde character (Unicode 0x223c) should be suitable: ∼

Because the Unicode value of this character is greater than 0x0100, it will be sorted by its Unicode value, which will place it after all Latin letters (including those with accents).
Indeed I already have changed the ~ character to the character 02CD using MP3tag (the Swiss army knife for managing audio metadata). As David mentioned this is not a big job and can be doen within an hour of work for my PC.
It works well and the Genre tag can bei used as before.

Regards Rainer
Reference URL's