# Order to export

**URL:** <https://community.mp3tag.de/t/order-to-export/14437>\
**Category:** Support\
**Created:** [February 7, 2013, 12:25pm UTC](https://community.mp3tag.de/t/order-to-export/14437 "2013-02-07T12:25:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAGAZINE](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@MAGAZINE](https://community.mp3tag.de/u/MAGAZINE)\
**Post date:** [February 7, 2013, 12:25pm UTC](https://community.mp3tag.de/t/order-to-export/14437/1 "2013-02-07T12:25:02Z")

</div>

Hello  
I made an order on all my files which is not alphabetically but matches my %title2% column.  
When the export in .text, I would like to keep this order, but systematically it the puts me alphabetically by filename!  
This is something simple, but I do not!  
Thanks in advance for your help  
Jean

Script .txt:  
$title2(txt,utf-8)$loop(%\_path%)%title2%  
$loopend()

---

<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:** [February 7, 2013, 12:37pm UTC](https://community.mp3tag.de/t/order-to-export/14437/2 "2013-02-07T12:37:17Z")

</div>

> [@KADENCE](#):
>
> Hello I made an order on all my files which is not alphabetically but matches my %title2% column.  
> When the export in .text, I would like to keep this order ...

**1: $filename($getEnv('USERPROFILE')'\Desktop\Mp3tag.Report.txt',UTF-8)** 

**2: $loop(%title2%)%title2%' --- '%\_filename\_ext%  
3: $loopend()**

 

Note:  
The Mp3tag report feature is decoupled from the Mp3tag interactive list view.  
The sorting in the list view has no effect to the reporting process.  
The Mp3tag report feature provides the function $loop for sorting purposes.

 

DD.20130207.1438.CET

---

<div class="post-metadata">

**Author:** ![MAGAZINE](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@MAGAZINE](https://community.mp3tag.de/u/MAGAZINE)\
**Post date:** [February 7, 2013, 1:08pm UTC](https://community.mp3tag.de/t/order-to-export/14437/3 "2013-02-07T13:08:29Z")

</div>

Thank you!!  
Best regards  
Jean

---

<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:** [February 7, 2013, 1:38pm UTC](https://community.mp3tag.de/t/order-to-export/14437/4 "2013-02-07T13:38:45Z")

</div>

If you have arranged the column for the tag-field TITLE2 by hand ...  
and you want to preserve this order for this tag-field when creating a report output, ...  
then you may insert a helper column resp. a helper tag-field, called MY\_ORDER or so, ...  
which contains an ordered sequence of numbers, ...  
so that the $loop(%MY\_ORDER%) can work with the given numerical order.

After you have arranged the list view in order of the tag-field TITLE2 by hand ...  
then run ...  
Action "Format value"  
Field: MY\_ORDER  
Format string: %\_counter%

Afterwards let the report run ..

**1: $filename($getEnv('USERPROFILE')'\Desktop\Mp3tag.Report.txt',UTF-8)** 

2: $loop(%MY\_ORDER%)%TITLE2%' - '%\_filename\_ext%  
3: $loopend()

At end remove the helper tag-field from the files.

DD.20130207.1532.CET

---

<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:24pm UTC](https://community.mp3tag.de/t/order-to-export/14437/5 "2026-02-09T12:24:19Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


