# Sort lists by last name

**URL:** https://community.mp3tag.de/t/sort-lists-by-last-name/15509
**Category:** Support
**Created:** [February 15, 2014, 4:11pm UTC](https://community.mp3tag.de/t/sort-lists-by-last-name/15509 "2014-02-15T16:11:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tnelly](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/48db29/32.png) [@tnelly](https://community.mp3tag.de/u/tnelly)
#### Post date: [February 15, 2014, 4:11pm UTC](https://community.mp3tag.de/t/sort-lists-by-last-name/15509/1 "2014-02-15T16:11:56Z")

</div>

I want to create a composersort field that sorts by composer's last name.  
The information is in the composer field and I want to transpose first and last names and copy them to the composersort field. In other words,

from  
field composer --- James Joyce  
to  
field composer sort -- Joyce, James

The post below is sort of the reverse of what I want to do, but I don't know enough about the expressions to adapt it to my need.  
[Editing Composers](https://community.mp3tag.de/t/15150/1)

Many thanks.

---

<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: [February 15, 2014, 4:30pm UTC](https://community.mp3tag.de/t/sort-lists-by-last-name/15509/2 "2014-02-15T16:30:27Z")

</div>

create an action of the type "Replace with regular expression" for the field composersort.  
Enter as Search String: (._) (._)  
Enter as Replace String: $2, $1

Works only for names that really only are composed of a first and a last name and not several first names.

---

<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: [February 15, 2014, 6:29pm UTC](https://community.mp3tag.de/t/sort-lists-by-last-name/15509/3 "2014-02-15T18:29:21Z")

</div>

> [@tnelly](#):
>
> I want to create a composersort field that sorts by composer's last name. The information is in the composer field and I want to transpose first and last names and copy them to the composersort field. ...

Read there ...  
[Composersort mit mehreren Personen](https://community.mp3tag.de/t/11298/3)  
[Composersort mit mehreren Personen](https://community.mp3tag.de/t/11298/5)

DD.20140215.2029.CET

---

<div class="post-metadata">

### Author: ![tnelly](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/48db29/32.png) [@tnelly](https://community.mp3tag.de/u/tnelly)
#### Post date: [February 18, 2014, 9:20pm UTC](https://community.mp3tag.de/t/sort-lists-by-last-name/15509/4 "2014-02-18T21:20:53Z")

</div>

> [@DetlevD](#):
>
> Read there ...  
> [Composersort mit mehreren Personen](https://community.mp3tag.de/t/11298/3)  
> [Composersort mit mehreren Personen](https://community.mp3tag.de/t/11298/5)
> 
> DD.20140215.2029.CET

Danke.

---

<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: [February 9, 2026, 12:24pm UTC](https://community.mp3tag.de/t/sort-lists-by-last-name/15509/5 "2026-02-09T12:24:55Z")

</div>


