# Change the order within a tag

**URL:** <https://community.mp3tag.de/t/change-the-order-within-a-tag/3058>\
**Category:** Support\
**Created:** [March 19, 2006, 7:29am UTC](https://community.mp3tag.de/t/change-the-order-within-a-tag/3058 "2006-03-19T07:29:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![HankD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/hankd/32/5130_2.png) [@HankD](https://community.mp3tag.de/u/HankD)\
**Post date:** [March 19, 2006, 7:29am UTC](https://community.mp3tag.de/t/change-the-order-within-a-tag/3058/1 "2006-03-19T07:29:35Z")

</div>

Hi,  
In my library of concert recordings I use the following  
scheme for the album title:

1967-11-07 - Konserthuset, Stockholm

In the tag I want it presented like this:

Konserthuset, Stockholm - 1967-11-07

How can I do this, without changing the filename?

All best  
---Hank

---

<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:** [March 19, 2006, 7:37am UTC](https://community.mp3tag.de/t/change-the-order-within-a-tag/3058/2 "2006-03-19T07:37:46Z")

</div>

The following [action](https://community.mp3tag.de/t/967) should do the trick:

Action type: **Replace with regular expression**  
Field: **ALBUM**  
Regular expression: `(.*) - (.*)`  
Replace matches with: `$2 - $1`

[] case-sensitive comparison

---

<div class="post-metadata">

**Author:** ![HankD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/hankd/32/5130_2.png) [@HankD](https://community.mp3tag.de/u/HankD)\
**Post date:** [April 13, 2018, 11:17am UTC](https://community.mp3tag.de/t/change-the-order-within-a-tag/3058/3 "2018-04-13T11:17:29Z")

</div>

I return to this old reply that helped me a lot the last 12 years! 🙂

I try to use it on a more complicated action but can't get it to work.

In my concert recordings I tag ALBUMARTISTS with musicionas and instruments, like this (A)

Henry Threadgill - flute; alto sax, Liberty Ellman - acoustic guitar, Stomu Takeishi - acoustic bass

but some tags are named differently, like this (B)

flute; alto sax - Henry Threadgill, acoustic guitar - Liberty Ellman, acoustic bass - Stomu Takeishi

There can be more musicians of course.

Anyone who could help me rearrange (B) into (A)?

Best wishes /Henry

---

<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:** [April 13, 2018, 12:33pm UTC](https://community.mp3tag.de/t/change-the-order-within-a-tag/3058/4 "2018-04-13T12:33:08Z")

</div>

This one is a little bit trickier as it consists of multiple pairs that need to be rearranged.

Action type: **Replace with regular expression**  
Field: **ALBUMARTIST** or **ALBUMARTISTS** (depending on the actual field name)  
Regular expression: `(.+?) [-|–|—] (.+?)(,|$)(\s?)`  
Replace matches with: `$2 - $1$3$4`

[] case-sensitive comparison

---

<div class="post-metadata">

**Author:** ![HankD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/hankd/32/5130_2.png) [@HankD](https://community.mp3tag.de/u/HankD)\
**Post date:** [April 13, 2018, 1:14pm UTC](https://community.mp3tag.de/t/change-the-order-within-a-tag/3058/5 "2018-04-13T13:14:03Z")

</div>

Florian! That was quick. Thanks.  
Tried this, followed your instructions and copied your formulas, couldn't get it to work, nothing happened in the field, which is named ALBUMARTIST of course. The one I tried looked like this:

Bass Clarinet; Acoustic Guitar; Electric Guitar – Doug Mathews, Drums; Tenor Saxophone; Piano – Anthony Cole, Tenor Saxophone; Soprano Saxophone; Flute; Vocals; Piano – Sam Rivers

Hmm?

---

<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:** [April 13, 2018, 1:33pm UTC](https://community.mp3tag.de/t/change-the-order-within-a-tag/3058/6 "2018-04-13T13:33:17Z")

</div>

It's hard to track by eye, but there are different types of dashes and your example string uses ndashes.

- - dash
- – ndash and
- — mdash

I've updated the regular expression above to take into account the different types of dashes. The resulting string will use normal dashes (or whatever you'll put there).

---

<div class="post-metadata">

**Author:** ![HankD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/hankd/32/5130_2.png) [@HankD](https://community.mp3tag.de/u/HankD)\
**Post date:** [April 13, 2018, 1:43pm UTC](https://community.mp3tag.de/t/change-the-order-within-a-tag/3058/7 "2018-04-13T13:43:53Z")

</div>

Thank you! Works perfect!  
The dashes comes from different places (Discogs etc), I understand now that they are different, hard to see.  
I also understand why I couldn't sort this out myself...Hahahaha.  
Great help, thank you, Florian! /Henry

---

<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:19pm UTC](https://community.mp3tag.de/t/change-the-order-within-a-tag/3058/8 "2026-02-09T12:19:41Z")

</div>


