# Action to create ARTISTSORT tag

**URL:** https://community.mp3tag.de/t/action-to-create-artistsort-tag/2166
**Category:** Support
**Created:** [August 7, 2005, 3:54pm UTC](https://community.mp3tag.de/t/action-to-create-artistsort-tag/2166 "2005-08-07T15:54:34Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [August 7, 2005, 4:18pm UTC](https://community.mp3tag.de/t/action-to-create-artistsort-tag/2166/2 "2005-08-07T16:18:48Z")

</div>

> [@](#):
>
> Create an ARTISTSORT tag by either:
> 
> [1] taking the ARTIST field and reversing first & last names, separated by a comma, as in [lastname], [firstname]. For this purpose I think we can assume that the lastname is the final word in the name. For example, Stevie Ray Vaughan -\> Vaughan, Stevie Ray.
> 
> or
> 
> [2] taking the ARTIST and deleting any leading articles like "The", "Los", etc.

I think I just found the answer to #1 in the pinned post on Regular Expressions:

[Regular Expressions](https://community.mp3tag.de/t/521/1)

I think I can probably figure out #2 now.

Another question, though: Am I correct in the way I'm doing this?

I have a multi-step action that first copies (format) ARTIST to ARTISTSORT. It then does a regex replace on ARTISTSORT. Is that the right way to do this - in two steps?

---

_[View the full topic](https://community.mp3tag.de/t/action-to-create-artistsort-tag/2166)._
