# Sort by track number doesn't sort number formats

**URL:** <https://community.mp3tag.de/t/sort-by-track-number-doesnt-sort-number-formats/14783>\
**Category:** Support\
**Created:** [June 5, 2013, 8:17am UTC](https://community.mp3tag.de/t/sort-by-track-number-doesnt-sort-number-formats/14783 "2013-06-05T08:17:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![say170](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/7ab992/32.png) [@say170](https://community.mp3tag.de/u/say170)\
**Post date:** [June 5, 2013, 8:17am UTC](https://community.mp3tag.de/t/sort-by-track-number-doesnt-sort-number-formats/14783/1 "2013-06-05T08:17:00Z")

</div>

I am trying to renumber my MP3s so they all have two digits. If I short by track number, I end up with:

01  
01  
01  
1  
01  
1  
01  
01  
1

Is it possible to sort this so all the 1's and all the 01's are grouped. This would make my life so much easier for renaming.

I don't want to select all and rename because it will force me to copy far more files to my backup/NAS than required.

Thanks

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [June 5, 2013, 8:33am UTC](https://community.mp3tag.de/t/sort-by-track-number-doesnt-sort-number-formats/14783/2 "2013-06-05T08:33:51Z")

</div>

You can use the filter [F3] to display only track numbers with one digit:

track MATCHES ^\d$

---

<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:** [June 5, 2013, 9:52am UTC](https://community.mp3tag.de/t/sort-by-track-number-doesnt-sort-number-formats/14783/3 "2013-06-05T09:52:00Z")

</div>

Or you could create a userdefined column with the value of  
$len(%track%)  
and sort first by this and then by track.

---

<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:24pm UTC](https://community.mp3tag.de/t/sort-by-track-number-doesnt-sort-number-formats/14783/4 "2026-02-09T12:24:31Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


