# \[X\] Bei Export wird die Track-Nr nicht numerisch sondern als Text sortiert

**URL:** https://community.mp3tag.de/t/x-bei-export-wird-die-track-nr-nicht-numerisch-sondern-als-text-sortiert/3861
**Category:** Fehlermeldungen
**Created:** [October 6, 2006, 12:41pm UTC](https://community.mp3tag.de/t/x-bei-export-wird-die-track-nr-nicht-numerisch-sondern-als-text-sortiert/3861 "2006-10-06T12:41:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BusyBee](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/cdc98d/32.png) [@BusyBee](https://community.mp3tag.de/u/BusyBee)
#### Post date: [October 6, 2006, 12:41pm UTC](https://community.mp3tag.de/t/x-bei-export-wird-die-track-nr-nicht-numerisch-sondern-als-text-sortiert/3861/1 "2006-10-06T12:41:25Z")

</div>

Die Ausgabe erfolgt in der Reihenfolge 1-10-11-12-2-3 statt 1-2-3-...-9-10-11-12  
Aufgetreten in Version 2.36a; gestestet auch in 2.36f. In Version 2.34 war es noch in Ordnung

Hier meine Exportfunktion:  
$filename(txt)$loop(%artist%)$loop(%album%)$loop(%track%)%track% -+- %artist% -+- %album% -+- %\_filename\_ext%  
$loopend()$loopend()$loopend()

Führt zu folgender Ausgabe:  
1 -+- Abba -+- Gold -+- Abba - 01 - Dancing Queen.mp3  
10 -+- Abba -+- Gold -+- Abba - 10 - S.O.S.mp3  
11 -+- Abba -+- Gold -+- Abba - 11 - Chiquitita.mp3  
12 -+- Abba -+- Gold -+- Abba - 12 - Fernando.mp3  
13 -+- Abba -+- Gold -+- Abba - 13 - Voulez Vous.mp3  
14 -+- Abba -+- Gold -+- Abba - 14 - Gimme! Gimme! Gimme!.mp3  
15 -+- Abba -+- Gold -+- Abba - 15 - Does Your Mother Know.mp3  
16 -+- Abba -+- Gold -+- Abba - 16 - One Of Us.mp3  
17 -+- Abba -+- Gold -+- Abba - 17 - The Name Of The Game.mp3  
18 -+- Abba -+- Gold -+- Abba - 18 - Thank You For The Music.mp3  
19 -+- Abba -+- Gold -+- Abba - 19 - Waterloo.mp3  
2 -+- Abba -+- Gold -+- Abba - 02 - Knowing Me, Knowing You.mp3  
3 -+- Abba -+- Gold -+- Abba - 03 - Take A Chance On Me.mp3  
4 -+- Abba -+- Gold -+- Abba - 04 - Mamma Mia.mp3  
5 -+- Abba -+- Gold -+- Abba - 05 - Lay All Your Love On Me.mp3  
6 -+- Abba -+- Gold -+- Abba - 06 - Super Trouper.mp3  
7 -+- Abba -+- Gold -+- Abba - 07 - I Have A Dream.mp3  
8 -+- Abba -+- Gold -+- Abba - 08 - The Winner Takes It All.mp3  
9 -+- Abba -+- Gold -+- Abba - 09 - Money, Money, Money.mp3

---

<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: [October 6, 2006, 12:53pm UTC](https://community.mp3tag.de/t/x-bei-export-wird-die-track-nr-nicht-numerisch-sondern-als-text-sortiert/3861/2 "2006-10-06T12:53:31Z")

</div>

Da man innerhalb von $loop() nun auch Scripting-Funktionen verwenden kann muss man etwas wie $loop($num(%track%,2)) benutzen.
