# Custom export files - configure output

**URL:** <https://community.mp3tag.de/t/custom-export-files-configure-output/56708>\
**Category:** Support\
**Created:** [March 16, 2022, 2:44pm UTC](https://community.mp3tag.de/t/custom-export-files-configure-output/56708 "2022-03-16T14:44:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnfoliot](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnfoliot/32/10224_2.png) [@johnfoliot](https://community.mp3tag.de/u/johnfoliot)\
**Post date:** [March 16, 2022, 2:44pm UTC](https://community.mp3tag.de/t/custom-export-files-configure-output/56708/1 "2022-03-16T14:44:23Z")

</div>

Currently, when I use this:  
$loop(%album%) [I am doing this by artist name]

...it returns back the albums listed in alphabetical order. Is there a way to instead return them back listed by date (oldest [1999] to newest [2022])?  
TIA

---

<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:** [March 16, 2022, 2:57pm UTC](https://community.mp3tag.de/t/custom-export-files-configure-output/56708/2 "2022-03-16T14:57:08Z")

</div>

Either replace

> [@johnfoliot](#):
>
> $loop(%album%)

with  
$loop(%year%)  
or add it in front:  
$loop(%year%)$loop(%album%)  
this sorts first the years and then in that year all the albums alphabetically.  
(If you have 1 more $loop(), you also need 1 more $loopend() to close all loops/sorting orders)

---

<div class="post-metadata">

**Author:** ![johnfoliot](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnfoliot/32/10224_2.png) [@johnfoliot](https://community.mp3tag.de/u/johnfoliot)\
**Post date:** [March 16, 2022, 3:11pm UTC](https://community.mp3tag.de/t/custom-export-files-configure-output/56708/3 "2022-03-16T15:11:22Z")

</div>

Thank you for this ohrenkino!

---

<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:** [April 15, 2022, 3:12pm UTC](https://community.mp3tag.de/t/custom-export-files-configure-output/56708/4 "2022-04-15T15:12:01Z")

</div>

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