Author Topic: $SSort(): Silent Sorting for virtual tags (sorting w/o moving prefixes)  (Read 2970 times)


  • Hero Member
  • *****
  • Posts: 679
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.