# Sort releasedate in the tag panel

**URL:** https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921
**Category:** Support
**Created:** [February 28, 2024, 9:41am UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921 "2024-02-28T09:41:09Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Lo3ster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lo3ster/32/16348_2.png) [@Lo3ster](https://community.mp3tag.de/u/Lo3ster)
#### Post date: [February 28, 2024, 9:41am UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/1 "2024-02-28T09:41:09Z")

</div>

Hallo Mp3tag community,

I tag my tracks in releasedate in dd-mm-yyyy.  
Can someone help me how to setup the sort options in the tag panel in dd-mm-yyyy.

---

<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: [February 28, 2024, 10:09am UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/2 "2024-02-28T10:09:00Z")

</div>

What exactly do you want to achieve?

Could you show us a [screenshot](https://community.mp3tag.de/t/hints-for-asking-support-requests/56190#use-screenshots-to-exemplify-the-issue-2) of what you like to see in the [Tag Panel](https://docs.mp3tag.de/customization/tag-panel/)?

Maybe you want to sort your content in the [File List](https://docs.mp3tag.de/customization/file-list/) (not the Tag Panel)?

---

<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: [February 28, 2024, 11:29am UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/3 "2024-02-28T11:29:10Z")

</div>

> [@Lo3ster](#):
>
> releasedate

Provided, you have a column in the file list that shows the data from that field, see  
Menu View\>Sort by\>name of the column for the field.

Please note, that releasedate is probably a user-defined field. If you want to use a standard field, use RELEASETIME

> **[Tag Field Mappings – Mp3tag Documentation](https://docs.mp3tag.de/mapping/#releasetime)**
>
> Overview of all available tag fields, their names in Mp3tag, and how they are mapped to the internal structures of the different tag formats. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

### Author: ![Lo3ster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lo3ster/32/16348_2.png) [@Lo3ster](https://community.mp3tag.de/u/Lo3ster)
#### Post date: [February 28, 2024, 5:53pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/4 "2024-02-28T17:53:04Z")

</div>

![Untitled-1](https://community.mp3tag.de/uploads/default/original/3X/e/8/e8271d880cd2a6642b5ff1f0a49f7cc77c8259cd.jpeg)

---

<div class="post-metadata">

### Author: ![Lo3ster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lo3ster/32/16348_2.png) [@Lo3ster](https://community.mp3tag.de/u/Lo3ster)
#### Post date: [February 28, 2024, 5:58pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/5 "2024-02-28T17:58:58Z")

</div>

Sorry guys, new with mp3tag but learning is on the way.

What i like to see is, if i double clik on the filelist release time my files sorting in dd-mm-yyyy from low to high. Now it's only the first 2 numeric is sorting good.

---

<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: [February 28, 2024, 6:10pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/6 "2024-02-28T18:10:29Z")

</div>

Try to uncheck the "Numeric" check box.

Does this help to sort your files?

And just for completeness:  
You can click (once) on the column header in the File List, in your case the word "Release Time".  
Then the content will be sorted ascending and after another click descending.

From the already linked [documentation](https://docs.mp3tag.de/customization/file-list/#editing-columns):

 ![image](https://community.mp3tag.de/uploads/default/original/3X/5/0/5083b8ab1e0dc77a79339093ff9bdf3a7e8eaf21.png)

---

<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: [February 28, 2024, 6:23pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/7 "2024-02-28T18:23:35Z")

</div>

According to your screenshot, you use  
Value: `$meta_sep(releasetime,\\)`  
and  
Field: `%releasetime%`

Where did you get this content for "Value"?  
What do you want to achieve with that syntax and command?

---

<div class="post-metadata">

### Author: ![Lo3ster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lo3ster/32/16348_2.png) [@Lo3ster](https://community.mp3tag.de/u/Lo3ster)
#### Post date: [February 28, 2024, 6:48pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/8 "2024-02-28T18:48:06Z")

</div>

I just copy it from the artist Value. What i like to see is that the date sorting good in date-month-year.

---

<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: [February 28, 2024, 6:51pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/9 "2024-02-28T18:51:40Z")

</div>

Please show us another screenshot from one of your tracks after you have selected it and pressed Alt +T. This shows the View -\> Extended Tags popup window and you can see the content of all your tags, including your RELEASETIME content.

Is it really saved as dd-mm-yyyy?

Or is it `YYYY-MM-DD`?

---

<div class="post-metadata">

### Author: ![Lo3ster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lo3ster/32/16348_2.png) [@Lo3ster](https://community.mp3tag.de/u/Lo3ster)
#### Post date: [February 28, 2024, 7:02pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/10 "2024-02-28T19:02:39Z")

</div>

![Untitled-4](https://community.mp3tag.de/uploads/default/original/3X/4/b/4b39b5e92a47556ae84d1ff696c01b514707b0ab.jpeg)

Sorry, i'm dutch & and we use dd-mm-yyyy as date.  
Maybe is YYY-MM-DD the solutions. I'm gonna test that.

---

<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: [February 28, 2024, 7:05pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/11 "2024-02-28T19:05:22Z")

</div>

Your screenshot quality is a little bit poor.  
I assume, your RELEASETIME content is  
`07-07-2007`  
This could be  
`dd-mm-yyyy`  
or  
`mm-dd-yyyy`  
but for sure you don't have the YYYY in front of this field.

---

<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: [February 28, 2024, 7:11pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/12 "2024-02-28T19:11:58Z")

</div>

I'm not sure, what exactly you except as sort result.

If I click on a newly added column called Rel-Time it looks like this:  
 ![ReleaseTime](https://community.mp3tag.de/uploads/default/original/3X/c/a/ca734fc0579a5b4b0254c524ac9a83ce9ade7d3c.gif)

How do you want your column sorted?  
Could you please give us some examples?

---

<div class="post-metadata">

### Author: ![Lo3ster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lo3ster/32/16348_2.png) [@Lo3ster](https://community.mp3tag.de/u/Lo3ster)
#### Post date: [February 28, 2024, 7:20pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/13 "2024-02-28T19:20:07Z")

</div>

MM-DD-YYYY is the solution, Buy why not DD-MM YYYY

---

<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: [February 28, 2024, 7:23pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/14 "2024-02-28T19:23:51Z")

</div>

Because Mp3tag starts sorting your values from left to right.  
By default, there is no logic to sort "by day in a month in a year."

You have to decide what is most important to you:  
a) a date format that you can use in Mp3tag and your player, your smartphone, your car and so on?  
or  
b) a "natural" sorted column in Mp3tag

For b) you would still have to let us know, how exactly your displayed sort order should looks like.

---

<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: [February 28, 2024, 7:31pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/15 "2024-02-28T19:31:54Z")

</div>

If you want to just sort your visible column RELEASETIME in the File List of Mp3tag  
first by YYYY  
then by MM  
then by DD  
you could use this Sort by:  
`$right(%RELEASETIME%,4)$mid(%RELEASETIME%,4,2)$left(%RELEASETIME%,2)`  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/d/d/ddf69967b4f01ca0d6e9912ba4db2716dc1a769b.png)

Example:  
`31-07-2024`

This assumes that your year is always 4 numbers long and at the right side of RELEASETIME.  
It assumes, that the position 4 and 5 includes your MM "month" with two numbers.  
It assumes, that the first two positions includes your DD "day" with two numbers.

You would have to adjust it to your needs.

---

<div class="post-metadata">

### Author: ![Lo3ster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lo3ster/32/16348_2.png) [@Lo3ster](https://community.mp3tag.de/u/Lo3ster)
#### Post date: [February 28, 2024, 7:36pm UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/16 "2024-02-28T19:36:53Z")

</div>

Thanks LyricsLover, this what i was looking for.Youre a lifesaver. 🥳

---

<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: [February 29, 2024, 8:10am UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/17 "2024-02-29T08:10:19Z")

</div>

> [@Lo3ster](#):
>
> releasedate in dd-mm-yyyy.

As there are mnay ways to skin a cat - you could use a shorter expression in  
Sort by: `$regexp(%releasetime%,(\d\d)-(\d\d)-(\d\d\d\d),$3-$2-$1)`  
This expression rearranges dd-mm-yyyy to yyyy-mm-dd

---

<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: [February 29, 2024, 8:34am UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/18 "2024-02-29T08:34:20Z")

</div>

Or even shorter 😉 with  
Sort by: `$regexp(%releasetime%,(\d+)-(\d+)-(\d+),$3-$2-$1)`

![image](https://community.mp3tag.de/uploads/default/original/3X/3/1/31fd83768da17e967cc35c330e6f407edfb6192b.png)

This would also work for dates like  
`29-2-2024`  
or  
`1-3-2024`

---

<div class="post-metadata">

### Author: ![Casual\_Tea](https://community.mp3tag.de/user_avatar/community.mp3tag.de/casual_tea/32/18886_2.png) [@Casual\_Tea](https://community.mp3tag.de/u/Casual_Tea)
#### Post date: [February 29, 2024, 10:29am UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/19 "2024-02-29T10:29:47Z")

</div>

> [@LyricsLover](#):
>
> This would also work for dates like  
> `29-2-2024`  
> or  
> `1-3-2024`

That also matches nonsensical stuff like:  
`1231231-12312513-1215513`

If you want to be really precise I'd alter that expression to:

```auto
$regexp(%releasetime%,(\d{1,2})-(\d{1,2})-(\d{4}),$3-$2-$1)

```

And if you also want to account for different writing styles like `29/2/2024` or `29.2.2024`, that becomes:

```auto
$regexp(%releasetime%,(\d{1,2})[-/.](\d{1,2})[-/.](\d{4}),$3-$2-$1)

```

![grafik](https://community.mp3tag.de/uploads/default/original/3X/d/6/d69980aa120d566480db00c25dee389024a75785.png)

I've used expressions like that to automatically retrieve the year information from bootleg album names where often times you encounter a wild mix of yyyy-mm-dd and mm-dd-yyyy, written in many different ways.

---

<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: [February 29, 2024, 10:32am UTC](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921/20 "2024-02-29T10:32:55Z")

</div>

The general idea should be to get a date format  
that follows ISO 8601 formats. From the ID3 specs: **yyyy-MM-ddTHH:mm:ss** (year, "-", month, "-", day, "T", hour (out of 24), ":", minutes, ":", seconds).  
So the original date format

> [@Lo3ster](#):
>
> dd-mm-yyyy.

does not comply with that ISO and should be modified.  
The welcome side effect would be that the ISO compliant date would then sort without any additional statement for the sorting order.

[Next page](https://community.mp3tag.de/t/sort-releasedate-in-the-tag-panel/63921.md?page=2)
