# I cannot sort for track in my exports.

**URL:** https://community.mp3tag.de/t/i-cannot-sort-for-track-in-my-exports/2917
**Category:** General Discussion
**Created:** [February 18, 2006, 6:54am UTC](https://community.mp3tag.de/t/i-cannot-sort-for-track-in-my-exports/2917 "2006-02-18T06:54:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Altobere](https://community.mp3tag.de/user_avatar/community.mp3tag.de/altobere/32/84_2.png) [@Altobere](https://community.mp3tag.de/u/Altobere)
#### Post date: [February 18, 2006, 6:54am UTC](https://community.mp3tag.de/t/i-cannot-sort-for-track-in-my-exports/2917/1 "2006-02-18T06:54:13Z")

</div>

Hi Florian.  
Since my update 2.35 ---\> 2.35b the sort of tracks in my export files (only test it) don't work. In the txt files and html files. Don't work in any file type.  
I use too much it function. When back to old version (2.35) and the sort work perfect again.  
Maybe I am doing something bad.  
Very thanks. 🙂

---

<div class="post-metadata">

### Author: ![Altobere](https://community.mp3tag.de/user_avatar/community.mp3tag.de/altobere/32/84_2.png) [@Altobere](https://community.mp3tag.de/u/Altobere)
#### Post date: [February 18, 2006, 7:02am UTC](https://community.mp3tag.de/t/i-cannot-sort-for-track-in-my-exports/2917/2 "2006-02-18T07:02:09Z")

</div>

I work in my export files with the **new** system of exports. The older system it was discontinued since version 2.35b, I know.  
I can't sort for track order with the **new system**.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 18, 2006, 9:29am UTC](https://community.mp3tag.de/t/i-cannot-sort-for-track-in-my-exports/2917/3 "2006-02-18T09:29:38Z")

</div>

Try **$num(%track%,2)** instead of %track%. I've introduced scripting in $loop()-part with version 2.35b 🙂

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![Altobere](https://community.mp3tag.de/user_avatar/community.mp3tag.de/altobere/32/84_2.png) [@Altobere](https://community.mp3tag.de/u/Altobere)
#### Post date: [February 18, 2006, 4:26pm UTC](https://community.mp3tag.de/t/i-cannot-sort-for-track-in-my-exports/2917/4 "2006-02-18T16:26:51Z")

</div>

> [@](#):
>
> Try **$num(%track%,2)** instead of %track%. I've introduced scripting in $loop()-part with version 2.35b 🙂

Thanks Florian! Yes, with your instructions the sort in export files work fine. 🙂

It is impossible to maintain the sort work fine (as before) with a single char (1 to 9) ??  
I try with $num(%track%,1), but don't work. (1,10,11,12,13,14,15,16,17,18,19,2,20,3,4,5,6,7,8,9)

**Curiosity (or bug):**  
With the following code... (wrong code certainly) Mp3Tag 2.35b crash...  
**$loop(%track%,2)$num(%track%,2). %title% %\_length%  
$loopend()**

Correct Code:  
$loop($num(%track%,2))$num(%track%,2). %title% %\_length%  
$loopend()

Thanks Again Florian.  
A great greeting for you.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 19, 2006, 5:55pm UTC](https://community.mp3tag.de/t/i-cannot-sort-for-track-in-my-exports/2917/5 "2006-02-19T17:55:54Z")

</div>

> [@](#):
>
> **Curiosity (or bug):**  
> With the following code... (wrong code certainly) Mp3Tag 2.35b crash...  
> **$loop(%track%,2)$num(%track%,2). %title% %\_length%  
> $loopend()**

My guess is, that the crash only appears if one file is selected.

I'll try to fix it to the next release.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![Altobere](https://community.mp3tag.de/user_avatar/community.mp3tag.de/altobere/32/84_2.png) [@Altobere](https://community.mp3tag.de/u/Altobere)
#### Post date: [February 19, 2006, 10:57pm UTC](https://community.mp3tag.de/t/i-cannot-sort-for-track-in-my-exports/2917/6 "2006-02-19T22:57:10Z")

</div>

> [@](#):
>
> My guess is, that the crash only appears if one file is selected.
> 
> \<{POST\_SNAPBACK}\>

Hi Florian, thanks for answer my questions! 🙂  
I obtain the error to make crash our program, for select **all files** (mp3's) of a album.
