# Merge multi-value fields and set order

**URL:** https://community.mp3tag.de/t/merge-multi-value-fields-and-set-order/64449
**Category:** Support
**Created:** [April 19, 2024, 6:04am UTC](https://community.mp3tag.de/t/merge-multi-value-fields-and-set-order/64449 "2024-04-19T06:04:56Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![viviancels](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/bbe5ce/32.png) [@viviancels](https://community.mp3tag.de/u/viviancels)
#### Post date: [April 19, 2024, 6:04am UTC](https://community.mp3tag.de/t/merge-multi-value-fields-and-set-order/64449/1 "2024-04-19T06:04:56Z")

</div>

Hello. Is it possible to change the order of multiple tags?  
Example:  
Artist:DOMOTO & Yulua Oreshko  
Artists (with multiple field):DOMOTO\\Yulua Oreshko

Then I change artist tag by action: Yulua Oreshko & DOMOTO  
But how to change BY ACTION the order of artists tag (with multiple field):Yulua Oreshko\\DOMOTO

---

<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: [April 19, 2024, 6:16am UTC](https://community.mp3tag.de/t/merge-multi-value-fields-and-set-order/64449/2 "2024-04-19T06:16:41Z")

</div>

Create an action of the type "Guess value"  
Source: `$regexp($meta_sep(artist,==),(.*)==(.*),$2\\\\$1)`  
Target format string: %artist%

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [April 19, 2024, 6:24am UTC](https://community.mp3tag.de/t/merge-multi-value-fields-and-set-order/64449/3 "2024-04-19T06:24:04Z")

</div>

Your View -\> Extended Tags (Alt +T) are currently looking like this, correct?  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/b/6/b6b6640337d5a5086857d267b0a83c0afc18a224.png)

And you would like to see it like this?  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/b/5/b55ab3e08f87379f479ed0d36f378f941714bad2.png)

---

<div class="post-metadata">

### Author: ![viviancels](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/bbe5ce/32.png) [@viviancels](https://community.mp3tag.de/u/viviancels)
#### Post date: [April 19, 2024, 5:32pm UTC](https://community.mp3tag.de/t/merge-multi-value-fields-and-set-order/64449/4 "2024-04-19T17:32:06Z")

</div>

Yes, correct. I like to see it like this on second screenshot

---

<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: [April 19, 2024, 5:36pm UTC](https://community.mp3tag.de/t/merge-multi-value-fields-and-set-order/64449/5 "2024-04-19T17:36:23Z")

</div>

Create an action of the type "Guess value"  
Source: `$regexp(%artist%,(.*) & (.*),$2\\\\$1)`  
Target format string: %artists%

---

<div class="post-metadata">

### Author: ![viviancels](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/bbe5ce/32.png) [@viviancels](https://community.mp3tag.de/u/viviancels)
#### Post date: [April 19, 2024, 5:37pm UTC](https://community.mp3tag.de/t/merge-multi-value-fields-and-set-order/64449/6 "2024-04-19T17:37:23Z")

</div>

Thank you, it works, if to use "artists" exept "artist":  
`$regexp($meta_sep(artists,==),(.*)==(.*),$2\\\\\\\\$1)`  
Often I change the order in the tag "artist":  
`$regexp(%artist%,'(.*) & (.*)','$2 & $1')`  
Flight of the Falcon & Nataliya Gyurd -\> Nataliya Gyurd & Flight of the Falcon  
Now I will change the order of tag "artists" too

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [April 20, 2024, 9:40am UTC](https://community.mp3tag.de/t/merge-multi-value-fields-and-set-order/64449/7 "2024-04-20T09:40:45Z")

</div>

For future readers:  
The above solution let you swap exactly two parts in the content of your ARTIST Tag, if exactly one ⎵`&`⎵ character divide the two parts.

It don't let you set the order if two or more ⎵`&`⎵ character exists in the ARTIST tag.  
Example: ARTIST  
`Yulua Oreshko & DOMOTO & Third & Fourth`  
-\>  
`Fourth & Yulua Oreshko & DOMOTO & Third`

It also don't let you set the order if three or more multi-value ARTISTS exists:  
Example: ARTISTS  
`Yulua Oreshko\\DOMOTO\\Third\\Fourth`  
-\>  
`Fourth\\Yulua Oreshko==DOMOTO==Third`

---

<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: [May 20, 2024, 9:41am UTC](https://community.mp3tag.de/t/merge-multi-value-fields-and-set-order/64449/8 "2024-05-20T09:41:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
