# Sorting in more de one item in export html

**URL:** https://community.mp3tag.de/t/sorting-in-more-de-one-item-in-export-html/1543
**Category:** Support
**Created:** [December 19, 2004, 1:07am UTC](https://community.mp3tag.de/t/sorting-in-more-de-one-item-in-export-html/1543 "2004-12-19T01:07:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Altober](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@Altober](https://community.mp3tag.de/u/Altober)
#### Post date: [December 19, 2004, 1:07am UTC](https://community.mp3tag.de/t/sorting-in-more-de-one-item-in-export-html/1543/1 "2004-12-19T01:07:22Z")

</div>

Hi 🙂  
Example:  
$loop("%\_filename\_ext%")  
or  
$loop("%artist%")  
But ever order is in one item...  
I need sorting in MORE de one item, need multiples items  
in the "Old System" my sort is:  
[EXPORTSORT]  
SORT=2 5 9  
In the "New System" I don't know ☹  
Very Thanks.

---

<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: [December 19, 2004, 8:25am UTC](https://community.mp3tag.de/t/sorting-in-more-de-one-item-in-export-html/1543/2 "2004-12-19T08:25:12Z")

</div>

I don't have much experience with the export, but according to the help:

> [@](#):
>
> $loop("%fieldname%") starts a new loop. The loop data is sorted by the fieldname.  
> $loopend() ends a loop.  
> If you want to limit the loop to a certain number of entries per loop partition, simply use $loop("%fieldname%",num). This is useful to eliminate duplicate records (num=1).

I assume that nested loops would do what you want.

Anyways, I am sure dano or Florian can help you more. 🙂

Edit: Notice that new MP3Tag versions do not need the quotation marks around the field name. You will have to write:

```
$loop(%fieldname%)

```

---

<div class="post-metadata">

### Author: ![nickless](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nickless/32/36_2.png) [@nickless](https://community.mp3tag.de/u/nickless)
#### Post date: [December 19, 2004, 10:40am UTC](https://community.mp3tag.de/t/sorting-in-more-de-one-item-in-export-html/1543/3 "2004-12-19T10:40:46Z")

</div>

> [@](#):
>
> SORT=2 5 9

Hi

I think this

```
$loop(%album%)$loop(%track%)$loop(%_filename_ext%)
---> export what you want here
$loopend()$loopend()$loopend()

```

would be the solution for you.

nickless

---

<div class="post-metadata">

### Author: ![Altober](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@Altober](https://community.mp3tag.de/u/Altober)
#### Post date: [December 20, 2004, 9:49am UTC](https://community.mp3tag.de/t/sorting-in-more-de-one-item-in-export-html/1543/4 "2004-12-20T09:49:38Z")

</div>

QUOTE (nickless @ Dec 19 2004, 08:40 AM)

Hi

I think this

```
$loop(%album%)$loop(%track%)$loop(%_filename_ext%)
---> export what you want here
$loopend()$loopend()$loopend()

```

would be the solution for you.

nickless

\<{POST\_SNAPBACK}\>

Hi: 🙂  
First... **Very Thanks** to Nickless and Sebastian for the help.  
Nickless, your indications functioned perfectly. Finally I could order for multiples items. Thanks again. A Great Greeting!

---

<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:19pm UTC](https://community.mp3tag.de/t/sorting-in-more-de-one-item-in-export-html/1543/5 "2026-02-09T12:19:17Z")

</div>


