# String to Reverse Sort Order Tag

**URL:** https://community.mp3tag.de/t/string-to-reverse-sort-order-tag/10620
**Category:** General Discussion
**Created:** [July 5, 2010, 5:54pm UTC](https://community.mp3tag.de/t/string-to-reverse-sort-order-tag/10620 "2010-07-05T17:54:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lagunatic](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/6de8d8/32.png) [@lagunatic](https://community.mp3tag.de/u/lagunatic)
#### Post date: [July 5, 2010, 5:54pm UTC](https://community.mp3tag.de/t/string-to-reverse-sort-order-tag/10620/1 "2010-07-05T17:54:29Z")

</div>

I would like all of my artists to be sorted and listed by first then last name and need to be able to batch it as I have a lot of files. What is the string that would change "Jackson, Michael" to Michael Jackson" in the Sort Order tag? Thanks in advance!!

---

<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 6, 2010, 3:14am UTC](https://community.mp3tag.de/t/string-to-reverse-sort-order-tag/10620/2 "2010-07-06T03:14:20Z")

</div>

> [@lagunatic](#):
>
> string that would change "Jackson, Michael" to Michael Jackson" in the Sort Order tag? Thanks in advance!!

This only works for strings that have a single comma in it. And it does not know whether the replacing is sensible or not.  
E.g. "Peter, Paul and Mary" would become "Paul and Mary Peter" (also refer to Emerson, Lake and Palmer, Earth, Wind and Fire ... I don't want to think about "Dave Dee, Dozy, Bicky, Mick and Titch")  
Anyway:  
Create an action of the type replace with regular expression for the field ???sortorder (should be artistsortorder or bandsortorder):  
Search for:  
`(.*), (.*)`  
Enter as replace string:  
$2 $1

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [July 6, 2010, 4:12am UTC](https://community.mp3tag.de/t/string-to-reverse-sort-order-tag/10620/3 "2010-07-06T04:12:45Z")

</div>

Maybe the correct naming of David Harman's pop music band is:  
"Dave Dee, Dozy, Beaky, Mick & Tich".

See the RegExp proposal there:  
[Regular Expressions](https://community.mp3tag.de/t/521/16)

DD.20100706.0812.CEST
