getmusicbee.com

Support => Questions => Topic started by: theta_wave on April 25, 2017, 06:15:23 PM

Title: [6322] $Sort function display issue
Post by: theta_wave on April 25, 2017, 06:15:23 PM
I have to use virtual tags to deal with multiple artists.  I don't like how the default displays "<Artist1>, <Artist2>, <Artist3>", so I created a virtualtag to display them as "<Artist1>, <Artist2> & <Artist3>".  To follow "ignore words", I enclosed the virtualtag with $sort, but I found out that a simple $sort(<artist>) will produce the following:

Ignore Words field: The, &, ..., "..., ", ', [, ], #, (, ), >, <, …, :

<Artist> = [ma-o]

Observed display (sorted by "m"): $Sort(<Artist>) = ma-o], [

Expected display (sorted by "m"): $Sort(<Artist>) = [ma-o]
Title: Re: [6322] $Sort function display issue
Post by: psychoadept on April 25, 2017, 06:31:08 PM
Why don't you just set a display artist instead of using a virtual tag?

In any case, the sort function is behaving as expected.  "[" is in your ignore words list, so it sends it to the end of the field.
Title: Re: [6322] $Sort function display issue
Post by: theta_wave on April 25, 2017, 06:43:01 PM
Why don't you just set a display artist instead of using a virtual tag?

In any case, the sort function is behaving as expected.  "[" is in your ignore words list, so it sends it to the end of the field.
Setting display tags for 200k files doesn't sound like my idea of fun nor does hunting down individual files that I'd like to set that display field either when everything worked fine before [6322].  Really, it looks rather incongruous that "ignore words" causes $sort() to do that when a user would rather to have MB ignore those prefixes rather than move them somewhere else as the field "ignore words" suggests.

What about bands like:

{Sunset} > Sunset}, {
...foo.. > foo..., ....
?foo? > foo?, ?
Title: Re: [6322] $Sort function display issue
Post by: boroda on April 25, 2017, 06:44:42 PM
psychoadept means that 'the beatles' must be sorted as 'beatles, the', not as just 'beatles'. at least mb is designed this way. as he have said you better try to use displayed artist. asr (command of 'additional tagging tools' plugin) can help to automate generation of displayed artist. and you always can change displayed artist manually.
Title: Re: [6322] $Sort function display issue
Post by: psychoadept on April 25, 2017, 07:07:39 PM
Honestly, I would support a wishlist request to have ignore words just drop the ignored characters instead of sending them to the end, because it would simplify some of my virtual tags.  But that wouldn't necessarily solve your problem, because you'd still get results like "ma-o]".

ASR, as boroda74 says, should be able to copy your virtual tag into display artists for you.  Then you just need to fine tune a little.
Title: Re: [6322] $Sort function display issue
Post by: Steven on April 25, 2017, 07:11:49 PM
the $Sort function has always appended the ignore chars/words to the end.
You can sort files without the sorting field displayed and use a different function for the display transformation - i dont see how $Sort would ever have worked as you wanted
Title: Re: [6322] $Sort function display issue
Post by: theta_wave on April 25, 2017, 07:31:06 PM
the $Sort function has always appended the ignore chars/words to the end.
You can sort files without the sorting field displayed and use a different function for the display transformation - i dont see how $Sort would ever have worked as you wanted
I believe it was due to the only time I did employ $sort(), and that was to <album>.  The result of $sort(<album>) for the album "The Best of 415 Records" is "The Best of 415 Records" displayed but sorted under "B" in the Album column.  I never used $sort(<artist>) until my compilation albums with  <Albumartist> as "Various Artists" disappeared from my custom views for genre autoplaylists.

EDIT: It seems that clearing out artistsort, composersort and albumsort under MB sorting menus/windows resolved a related issue that now allows me to avoid using $sort() on virtualtags modifying how <artist> and <albumartist> are displayed: https://getmusicbee.com/forum/index.php?topic=21707.msg127359#msg127359

Weird...
Title: Re: [6322] $Sort function display issue
Post by: Steven on April 25, 2017, 08:17:47 PM
just for the record and probably not related to this issue.
I forgot to include the new artist sort mapping lookup when displaying the following: <SortArtist>, <SortAlbumArtist> etc
thats fixed for the next update