# Sort Track numbers numerically even with A1, A2

**URL:** https://community.mp3tag.de/t/sort-track-numbers-numerically-even-with-a1-a2/63549
**Category:** Support
**Created:** [January 24, 2024, 6:34pm UTC](https://community.mp3tag.de/t/sort-track-numbers-numerically-even-with-a1-a2/63549 "2024-01-24T18:34:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![LR71](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9fc29f/32.png) [@LR71](https://community.mp3tag.de/u/LR71)
#### Post date: [January 24, 2024, 6:34pm UTC](https://community.mp3tag.de/t/sort-track-numbers-numerically-even-with-a1-a2/63549/1 "2024-01-24T18:34:44Z")

</div>

12 years later thought I'd add for anyone who gets info from Discogs to make sure this column isn't checked "Numeric," if it is the sort function won't work.

---

<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 24, 2024, 6:38pm UTC](https://community.mp3tag.de/t/sort-track-numbers-numerically-even-with-a1-a2/63549/2 "2024-01-24T18:38:23Z")

</div>

> [@LR71](#):
>
> who gets info from Discogs

Why shouldn't the info from discogs be sorted numerically?

---

<div class="post-metadata">

### Author: ![LR71](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9fc29f/32.png) [@LR71](https://community.mp3tag.de/u/LR71)
#### Post date: [January 24, 2024, 6:43pm UTC](https://community.mp3tag.de/t/sort-track-numbers-numerically-even-with-a1-a2/63549/3 "2024-01-24T18:43:03Z")

</div>

Discogs provides track info in the A1, A2, A3 etc format, MP3Tag doesn't know what to do with it. Or my copy didn't. Perhaps I checked something by accident. Or my Discogs settings are off.

---

<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 24, 2024, 6:49pm UTC](https://community.mp3tag.de/t/sort-track-numbers-numerically-even-with-a1-a2/63549/4 "2024-01-24T18:49:46Z")

</div>

> [@LR71](#):
>
> Discogs provides track info in the A1, A2, A3 etc format

This is only true if you select an originally vinyl release.  
CD releases are numbered perfectly just with numbers.

And just a sidenote: the ID3 standard wants the track field to be numeric with the only exception of the slash to separate the total of tracks. Taking the standard literally, the A1, A2 variation is an invalid format.

If you want to sort such track number, use the "Sort by" field in the column definition and use an expression like:  
`$ord(%track%,1)$num($mid(%track%,2,$len(%track%)),2)`

---

<div class="post-metadata">

### Author: ![LR71](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9fc29f/32.png) [@LR71](https://community.mp3tag.de/u/LR71)
#### Post date: [January 24, 2024, 7:19pm UTC](https://community.mp3tag.de/t/sort-track-numbers-numerically-even-with-a1-a2/63549/5 "2024-01-24T19:19:55Z")

</div>

That does help! I do generally use vinyl issues for tagging, but dislike the A1 etc format - I made a custom column that just sorts by %track% when Discogs doesn't give me #s with leading zeroes, which seems to be what trips up the sorting.

---

<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 23, 2024, 7:20pm UTC](https://community.mp3tag.de/t/sort-track-numbers-numerically-even-with-a1-a2/63549/6 "2024-02-23T19:20:31Z")

</div>

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