# Playlist order

**URL:** https://community.mp3tag.de/t/playlist-order/4023
**Category:** Export
**Created:** [November 6, 2006, 3:33pm UTC](https://community.mp3tag.de/t/playlist-order/4023 "2006-11-06T15:33:52Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Rambaldi](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/34f0e0/32.png) [@Rambaldi](https://community.mp3tag.de/u/Rambaldi)
#### Post date: [November 6, 2006, 3:33pm UTC](https://community.mp3tag.de/t/playlist-order/4023/1 "2006-11-06T15:33:52Z")

</div>

I want to export playlists only.  
The tracks are always sorted in order of the filenames.

How can I let mp3tag export by using the order, given by the playlist?

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [November 6, 2006, 4:05pm UTC](https://community.mp3tag.de/t/playlist-order/4023/2 "2006-11-06T16:05:56Z")

</div>

Simply change $loop(%\_filename%) to $loop(%artist%) or whatever you wish.

---

<div class="post-metadata">

### Author: ![Rambaldi](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/34f0e0/32.png) [@Rambaldi](https://community.mp3tag.de/u/Rambaldi)
#### Post date: [November 6, 2006, 4:24pm UTC](https://community.mp3tag.de/t/playlist-order/4023/3 "2006-11-06T16:24:00Z")

</div>

yeah, that´s clear.  
but what is the code for random play order?

I load a playlist -\> files are listed in mp3Tag as they are in the playlist.

-\> I want this order in the exported file.

Which variable do I have to use?

---

<div class="post-metadata">

### Author: ![milka](https://community.mp3tag.de/user_avatar/community.mp3tag.de/milka/32/55_2.png) [@milka](https://community.mp3tag.de/u/milka)
#### Post date: [November 7, 2006, 2:25pm UTC](https://community.mp3tag.de/t/playlist-order/4023/4 "2006-11-07T14:25:35Z")

</div>

Try $loop(%\_path%)

---

<div class="post-metadata">

### Author: ![Rambaldi](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/34f0e0/32.png) [@Rambaldi](https://community.mp3tag.de/u/Rambaldi)
#### Post date: [November 7, 2006, 2:27pm UTC](https://community.mp3tag.de/t/playlist-order/4023/5 "2006-11-07T14:27:49Z")

</div>

works. thanks a lot.

---

<div class="post-metadata">

### Author: ![SLT\_Radio](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@SLT\_Radio](https://community.mp3tag.de/u/SLT_Radio)
#### Post date: [January 31, 2007, 6:15am UTC](https://community.mp3tag.de/t/playlist-order/4023/6 "2007-01-31T06:15:53Z")

</div>

$loop(%\_total\_files%) also works.
