# Sort Alphabetically WTHIN a Tag?

**URL:** https://community.mp3tag.de/t/sort-alphabetically-wthin-a-tag/44129
**Category:** Support
**Created:** [January 7, 2019, 1:19pm UTC](https://community.mp3tag.de/t/sort-alphabetically-wthin-a-tag/44129 "2019-01-07T13:19:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Patch](https://community.mp3tag.de/user_avatar/community.mp3tag.de/patch/32/9350_2.png) [@Patch](https://community.mp3tag.de/u/Patch)
#### Post date: [January 7, 2019, 1:19pm UTC](https://community.mp3tag.de/t/sort-alphabetically-wthin-a-tag/44129/1 "2019-01-07T13:19:31Z")

</div>

H,  
I have a tag that I use to keep notes on tracks. Just general notes on a track (examples - Bass; Heavy; Vocals; Dirty; New; etc...)

I use the MOVEMENTNAME tag, since this is readable in both iTunes and MP3Tag, and I'd like to use Smart Playlists in iTunes to sort tunes by MOVEMENTNAME tag.

Is there a way that I can sort my entries in the MOVEMENTNAME tag alphabetically? So:

**Bass; Heavy; Vocals; Dirty; New;**

_would become:_

**Bass; Dirty; Heavy; New; Vocals;**

All tags are separated by "; " (semi-colon,space).

Cheers,  
-Patch.

---

<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: [January 7, 2019, 1:30pm UTC](https://community.mp3tag.de/t/sort-alphabetically-wthin-a-tag/44129/2 "2019-01-07T13:30:06Z")

</div>

Nothing has changed since this thread:

> [@\[Script\] - Update with a sorted version of a field containing comma-separated values](https://community.mp3tag.de/t/script-update-with-a-sorted-version-of-a-field-containing-comma-separated-values/14314):
>
> Good Day Everyone, I am trying to figure out whether or not it is possible to update a field (Genre for that matter) that contains a list of comma-separated values (for example 'Tech House, Jazz, Ambient') with a sorted version of the very same field (with the previous example leading to 'Ambient, Jazz, Tech House') ? Thank you for any help you may provide me with, Don

What you could try: see if iTunes understands multi-value fields and so split one MOVEMENTNAME from one field with many entries to many fields with the name MOVEMENTNAME with a single entry.  
But is this necessary at all? Don't the smart playlists have an operator "contains" or "has"?

---

<div class="post-metadata">

### Author: ![Patch](https://community.mp3tag.de/user_avatar/community.mp3tag.de/patch/32/9350_2.png) [@Patch](https://community.mp3tag.de/u/Patch)
#### Post date: [January 7, 2019, 1:40pm UTC](https://community.mp3tag.de/t/sort-alphabetically-wthin-a-tag/44129/3 "2019-01-07T13:40:15Z")

</div>

Thanks for the update. 👍

Cheers.

---

<div class="post-metadata">

### Author: ![CaptainKen](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/3bc359/32.png) [@CaptainKen](https://community.mp3tag.de/u/CaptainKen)
#### Post date: [March 19, 2025, 6:10pm UTC](https://community.mp3tag.de/t/sort-alphabetically-wthin-a-tag/44129/4 "2025-03-19T18:10:17Z")

</div>

Can a script be written to do this?

---

<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: [March 19, 2025, 6:22pm UTC](https://community.mp3tag.de/t/sort-alphabetically-wthin-a-tag/44129/5 "2025-03-19T18:22:32Z")

</div>

No-one has succeeded so far with the MP3tag built-in functions.

Edit, 20.03.2025: until now:

> [@Mp3tag Development Build Status](https://community.mp3tag.de/t/mp3tag-development-build-status/455):
>
> Date: 2025-03-20 Version: 3.28i Status: Beta warningDownload: 64-bit [mp3tagv328i-x64-setup.exe](https://download.mp3tag.de/mp3tagv328i-x64-setup.exe) 32-bit [mp3tagv328isetup.exe](https://download.mp3tag.de/mp3tagv328isetup.exe) 3.28i (2025-03-20) NEW: added scripting function sort to sort parts of a given string delimited by a given delimiter string, e.g., $sort('c;a;b',';') ([#44129](https://community.mp3tag.de/t/44129), [#61706](https://community.mp3tag.de/t/61706), [#65925](https://community.mp3tag.de/t/65925), [#67901](https://community.mp3tag.de/t/67901)) 3.28h (2025-03-13) CHG: added option to run Mp3tag from installer. ([#67791](https://community.mp3tag.de/t/67791)) CHG: running Mp3tag process is closed during installation. ([#67791](https://community.mp3tag.de/t/67791)) 3.28f (2025-03-06) …

---

<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: [April 18, 2025, 6:22pm UTC](https://community.mp3tag.de/t/sort-alphabetically-wthin-a-tag/44129/6 "2025-04-18T18:22:33Z")

</div>

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