# AlbumArtistSort and ArtistSort - switch first and last names

**URL:** <https://community.mp3tag.de/t/albumartistsort-and-artistsort-switch-first-and-last-names/55992>\
**Category:** Mac\
**Created:** [January 22, 2022, 5:10am UTC](https://community.mp3tag.de/t/albumartistsort-and-artistsort-switch-first-and-last-names/55992 "2022-01-22T05:10:22Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [January 25, 2022, 7:56am UTC](https://community.mp3tag.de/t/albumartistsort-and-artistsort-switch-first-and-last-names/55992/14 "2022-01-25T07:56:54Z")

</div>

I had a look at the expression used in #17 and it seems to me that an escape of the opening bracket in the first match group is missing. A correct expression would be

`^([^,\[]+)\s([^,\[]+)$`

The same applies to the expression using in #18

`^([^,\[]+)\s([^,\[]+)\s(\[.+\])$`

---

_[View the full topic](https://community.mp3tag.de/t/albumartistsort-and-artistsort-switch-first-and-last-names/55992)._
