# track sortierung beim export fehlerhaft

**URL:** https://community.mp3tag.de/t/track-sortierung-beim-export-fehlerhaft/4696
**Category:** Allgemein
**Created:** [April 2, 2007, 6:59pm UTC](https://community.mp3tag.de/t/track-sortierung-beim-export-fehlerhaft/4696 "2007-04-02T18:59:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ponscho](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/cc9497/32.png) [@Ponscho](https://community.mp3tag.de/u/Ponscho)
#### Post date: [April 2, 2007, 6:59pm UTC](https://community.mp3tag.de/t/track-sortierung-beim-export-fehlerhaft/4696/1 "2007-04-02T18:59:08Z")

</div>

hallo,

meine tracksortierung für einen text export funktioniert nicht,  
was mache ich falsch? bitte um rat

# $loop(%artist%,1)=============================================================================

### $upper(%artist%) — $upper(%album%) — %year%

===============================================================================  
$loop(%title%)$num(%track%,2). %title% — $div(%\_length\_seconds%,60):$num($mod(%\_length\_seconds%,60),2) — (%year%)  
$loopend()  
$loopend()

das ergebnis sieht so aus:

===============================================================================

### BAD ENGLISH — BACKLASH — 1991

===============================================================================  
05. dancing off the edge of the world — 4:55 — (1991)  
10. life at the top — 4:52 — (1991)  
09. make love last — 5:20 — (1991)  
08. pray for rain — 5:04 — (1991)  
06. rebel say a prayer — 4:24 — (1991)

1. so this is eden — 5:10 — (1991)
2. straight to your heart — 4:09 — (1991)
3. the time alone with you — 4:42 — (1991)
4. time stood still — 5:24 — (1991)

internette grüsse

---

<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: [April 2, 2007, 8:39pm UTC](https://community.mp3tag.de/t/track-sortierung-beim-export-fehlerhaft/4696/2 "2007-04-02T20:39:23Z")

</div>

Du benutzt $loop(%title%) was dann folglich nach dem Titel sortiert.  
Nach der Tracknummer sortieren geht z.B. so:  
$loop($num(%track%,2))

---

<div class="post-metadata">

### Author: ![Ponscho](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/cc9497/32.png) [@Ponscho](https://community.mp3tag.de/u/Ponscho)
#### Post date: [April 3, 2007, 12:05pm UTC](https://community.mp3tag.de/t/track-sortierung-beim-export-fehlerhaft/4696/3 "2007-04-03T12:05:42Z")

</div>

ich danke dir dano, du hast mir sehr weitergeholfen.

auch ein kompliment für deine export's die du da zauberst,  
ich wünschte ich hätte soviel ahnung davon.

nun muss ich nur noch rausfinden, wie ich die dauer rechtsbündig bekomme ![<_<](https://community.mp3tag.de/uploads/default/original/1X/5996dbb474c88b8f9fc49f09dc3858d081055a2d.gif "<\_<")

internette grüsse  
ponscho

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [April 3, 2007, 2:43pm UTC](https://community.mp3tag.de/t/track-sortierung-beim-export-fehlerhaft/4696/4 "2007-04-03T14:43:31Z")

</div>

> [@Ponscho](#):
>
> ... nun muss ich nur noch rausfinden, wie ich die dauer rechtsbündig bekomme ...

Vielleicht hilft dieser Thread weiter:  
[Export 2 txt - Leerzeichen individuell einfügen...](https://community.mp3tag.de/t/4469/2)

DD.20070403.1843

---

<div class="post-metadata">

### Author: ![Ponscho](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/cc9497/32.png) [@Ponscho](https://community.mp3tag.de/u/Ponscho)
#### Post date: [April 3, 2007, 3:31pm UTC](https://community.mp3tag.de/t/track-sortierung-beim-export-fehlerhaft/4696/5 "2007-04-03T15:31:52Z")

</div>

super jetzt hab ich's fast, danke DetlevD 😃

noch eine abschliessende frage. ist es möglich den interpreten zwischen diesen  
zeichen "============" in meinem code zu zentrieren und die track-dauer  
in eckigen klammer zu setzen?

mein code sieht mittlerweile so aus:

$loop(%artist%,1)==============================================================

### $upper(%artist%)

## ============================================================== album : $upper(%album%) jahr : %year% anzahl tracks : %\_total\_files% gesamtspielzeit : %\_total\_time% hinzugefügt : %\_date% bitrate : %\_bitrate% kbit/s

$loop($num(%track%,2))$num(%track%,2). $left(%title%..............................................,52) [$div(%\_length\_seconds%,60):$num($mod(%\_length\_seconds%,60),2)]  
$loopend()

$loopend()

ergebnis:

```
==============================================================
### AXXIS ###
==============================================================
album : KINGDOM OF THE NIGHT
jahr : 1989
anzahl tracks : 10
gesamtspielzeit : 00:37:40
hinzugefügt : 03.04.2007
bitrate : 192 kbit/s
--------------------------------------------------------------

01. living in a world................................... 3:54
02. kingdom of the night................................ 3:52
03. never say never..................................... 3:42
04. fire and ice........................................ 4:01
05. young souls......................................... 3:17
06. for a song.......................................... 4:04
07. love is like an ocean............................... 3:25
08. the moon............................................ 3:41
09. tears of the trees.................................. 4:11
11. kings made of steel................................. 3:33

```

internette grüsse
