# Sorting in Export by TRACK

**URL:** https://community.mp3tag.de/t/sorting-in-export-by-track/57589
**Category:** Support
**Created:** [June 10, 2022, 8:30am UTC](https://community.mp3tag.de/t/sorting-in-export-by-track/57589 "2022-06-10T08:30:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Khalid](https://community.mp3tag.de/user_avatar/community.mp3tag.de/khalid/32/11644_2.png) [@Khalid](https://community.mp3tag.de/u/Khalid)
#### Post date: [June 10, 2022, 8:30am UTC](https://community.mp3tag.de/t/sorting-in-export-by-track/57589/1 "2022-06-10T08:30:01Z")

</div>

I have a problem with this method. I need to sort the text by track number before they generate, How to sort them by track number? Look at my screen shot. all the data has been exported nicely without any problem but they are not in sort ordered by track number, so when I import them then that's data have been imported to wrong files.  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/6/6d60f2afc26462b833921ef5fb67bf7c83dcb2a1.png)

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [June 10, 2022, 8:45am UTC](https://community.mp3tag.de/t/sorting-in-export-by-track/57589/2 "2022-06-10T08:45:48Z")

</div>

> [@Khalid](#):
>
> I need to sort the text by track number before they generate,

Instead of the loop (which sorts) by \_PATH

> [@Easiest way to copy the composer tags from one album to another](https://community.mp3tag.de/t/easiest-way-to-copy-the-composer-tags-from-one-album-to-another/47843/18):
>
> $loop(%\_path%)%track% - %composer%  
> $loopend()

use a loop by TRACK:  
$loop($num(%track%,2))%track% - %composer%  
$loopend()

---

<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: [July 10, 2022, 8:46am UTC](https://community.mp3tag.de/t/sorting-in-export-by-track/57589/3 "2022-07-10T08:46:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
