# Create an exemption for "Orchestra" in ArtistSort

**URL:** https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595
**Category:** Support
**Created:** [July 11, 2026, 3:42pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595 "2026-07-11T15:42:01Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![dvdr](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dvdr](https://community.mp3tag.de/u/dvdr)
#### Post date: [July 11, 2026, 3:42pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595/1 "2026-07-11T15:42:01Z")

</div>

Hi  
I have several actions to properly address classical artist tags. They all have on thing in common: they do an "artistsort" action at the end, that changes "firstname(s) surname" into "surname, firstname(s)" and creates an artistsort tag (even for multiple artists).

Only downside: whenever there is an orchestra name in the artist tag, of course you do not want the artiststort tag to read something like "Orchestra, London Philharmonic" or "London, Cinematic Orchestra of"

So: is there a way to add some term inside my already existing, various actions, that creates an exemption in the way of "if you encounter the terms Orchestra, Orchestre or Orchester, do not apply any sort-action to that specific "artist", but just copy the entire term as is to the artistsort tag - and only apply the artistsort-action to any other artists, that you might encounter inside the artist-tag".

Thanks for your ideas!

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 11, 2026, 3:43pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595/2 "2026-07-11T15:43:24Z")

</div>

You would have to add that condition to every action in which you want an exception.  
Or simply replace in the final result the "orchestra" with nothing.  
I would assume that the resulting string sorts well enough.

Or if you find any kind of "Orchestra" in the original string, set the sort field back to the orginal data without anything swapped.

`$ifgreater($strstr(%artist%,Orchestra),0,%artist%,%artistsort%)`

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [July 11, 2026, 3:46pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595/3 "2026-07-11T15:46:06Z")

</div>

I would suggest to use the Filter F3 first for all tracks that not include any form of orchestra names and then apply your Actions only to the listed tracks.

But, to be honest, catching all possible variants will not be easy.

---

<div class="post-metadata">

### Author: ![dvdr](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dvdr](https://community.mp3tag.de/u/dvdr)
#### Post date: [July 11, 2026, 4:01pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595/4 "2026-07-11T16:01:46Z")

</div>

Maybe, I should be more specific - should have done that in the first place, sorry!  
Without needing to go into details about my various actions, they all have one thing in common: an artistsort-action at the end, that is as follows

`$regexp($regexp(%artist%,(.`_`?) (\w`_`|\w*-\w*)('; '|$),$2', '$1; ),; $,)`  
edit: don't know, why the above code looks different, here's a normal copy&paste:  
$regexp($regexp(%artist%,(._?) (\w_|\w\*-\w\*)('; '|$),$2', '$1; ),; $,)

So, for example (the delimiter being ; )  
Annie Fischer; Leonard Bernstein; London Symphony Orchestra  
will be  
Fischer, Annie; Bernstein, Leonard; Orchestra, London Symphony

But I want it to be  
Fischer, Annie, Bernstein, Leonard; London Symphony Orchestra

It would be most sufficient for me, if there was an exemption, that says "for any artist identified between the delimiter ; that contains the word Orchestra, Orchester or Orchestre, do not apply the sorting action".  
Does this explanation make more sense?  
Thanks for your patience!

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 11, 2026, 4:07pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595/5 "2026-07-11T16:07:23Z")

</div>

Before I invest any more brainpower:  
Does that last bit of string really make a difference in sorting?  
I would assume that if all the Fischer files are grouped together and then all those that Fischer and Bernstein performed together - how may will be left over that irritatingly appear at the later position of "O" instead of the earlier of "L".  
I doubt that this makes a noticeable difference.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [July 11, 2026, 4:15pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595/6 "2026-07-11T16:15:46Z")

</div>

Just a quick note:

> [@dvdr](#):
>
> `$regexp($regexp(%artist%,(.`_`?) (\w`_`|\w*-\w*)('; '|$),$2', '$1; ),; $,)`

Are you sure that this regular expression convert  
Annie Fischer; Leonard Bernstein; London Symphony Orchestra  
correctly into  
Fischer, Annie; Bernstein, Leonard; Orchestra, London Symphony

I can't reproduce this result:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/8/f/8f3c69c9af01cd76b0071542462ce79ee59d70cd.png)

This is just to make sure that future readers with similar approaches are aware of this.

Ahhh, I see, the Forum parser deleted some characters:

```auto
$regexp($regexp(%artist%,(.`*`?) (\w`*`|\w*-\w*)('; '|$),$2', '$1; ),; $,)

```

---

<div class="post-metadata">

### Author: ![dvdr](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dvdr](https://community.mp3tag.de/u/dvdr)
#### Post date: [July 11, 2026, 4:23pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595/7 "2026-07-11T16:23:40Z")

</div>

> [@LyricsLover](#):
>
> Ahhh, I see, the Forum parser deleted some characters:

I added this code without highlighting in my above post, thanks for mentioning that!

`$regexp($regexp(%artist%,(.*?) (\\w*|\\w\*-\\w\*)('; '|$),$2', '$1; ),; $,)`

Is that the proper code now?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [July 11, 2026, 4:25pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595/8 "2026-07-11T16:25:42Z")

</div>

This is my working regular expression, except for the main Orchestra problem!  
It looks like this (not heavily tested):

`$regexp($regexp(%artist%,(.+?) (\w+|\w*-\w*)('; '|$),$2', '$1; ),; $,)`

 ![image](https://community.mp3tag.de/uploads/default/original/3X/e/c/ec4298a390f9629107605e866b916ffcb7952a7e.png)

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 11, 2026, 4:55pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595/9 "2026-07-11T16:55:41Z")

</div>

> [@dvdr](#):
>
> Is that the proper code now?

See here for proper code formatting:

> [@Hints for asking Support Requests](https://community.mp3tag.de/t/hints-for-asking-support-requests/56190):
>
> If you need support using Mp3tag, you can help the community members that are about to support you in finding a solution or workaround to your problem, by following these simple guidelines. Be descriptive, also in what you’ve already tried Please give a short explanation what’s not working as expected or what you’re trying to achieve. It’s best to know any details about the problem at hand and especially, what steps you’ve already tried to solve it by yourself. Helpful information also includ…

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [July 27, 2026, 1:40pm UTC](https://community.mp3tag.de/t/create-an-exemption-for-orchestra-in-artistsort/71595/10 "2026-07-27T13:40:12Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
