getmusicbee.com

General => MusicBee Wishlist => Topic started by: theta_wave on October 04, 2017, 08:07:12 PM

Title: $SSort(): Silent Sorting for virtual tags (sorting w/o moving prefixes)
Post by: theta_wave on October 04, 2017, 08:07:12 PM
Virtualtag shown in the screenshot below <Composer-Album>: $Sort($If($RxReplace(<Album>,"(^.*?)(\:.*$)","$1")=$RxReplace(<Composer>,"(?:^.*\s)(.*$)","$1"),$RxReplace(<Album>,"(?:^.*?\:\s)(.*$)","$1"),<Album>))

Present Workaround: Have 2 virtualtags, one for display (w/o $Sort) and one for sorting (w/ $Sort).  The album featuring Gil Shaham below has "Vivaldi: The Four Seasons (OCO: Shaham)" as its <album>.

Rationale: For classical music in this instance, there are many albums whose <album> tags consist of "Composer (Last Name): Album title" due to the presence of multiple composers on a single album.  In a dedicated composer playlist presenting tracks by said composer only, I (or rather my OCD ;)) found the composer name prefixing the album title to be redundant, thus unnecessary.  The present workaround is fine, but it uses up two virtualtags instead of one if $SSort() was an option.


(https://i.imgur.com/qh8gs4o.png)
Title: Re: $SSort(): Silent Sorting for virtual tags (sorting w/o moving prefixes)
Post by: The Incredible Boom Boom on June 01, 2023, 01:51:29 AM
I believe this solution can be solved with one Virtual Tag, but I'm having a little trouble understanding what you're attempting to accomplish.
It appears you are trying to sort by album title, but without the <Composer> present?