# Exporting to excel part 2

**URL:** https://community.mp3tag.de/t/exporting-to-excel-part-2/62647
**Category:** Support
**Created:** [November 3, 2023, 7:55pm UTC](https://community.mp3tag.de/t/exporting-to-excel-part-2/62647 "2023-11-03T19:55:42Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [November 4, 2023, 6:34am UTC](https://community.mp3tag.de/t/exporting-to-excel-part-2/62647/2 "2023-11-04T06:34:19Z")

</div>

You would need a linebreak in front of the $loop()

```auto
$filename(csv,utf-16)Title$char(9)Artist$char(9)Album$char(9)Track$char(9)Year$char(9)Length$char(9)Size$char(9)Modified$char(9)Path$char(9)Filename$char(9)Genre$char(9)Comment$char(9)BPM$char(9)Bitrate
$loop(%_filename_ext%)%title%$char(9)%artist%$char(9)%album%$char(9)%track%$char(9)%year%$char(9)%_length%$char(9)%_file_size%$char(9)%_file_mod_date%$char(9)%_folderpath%$char(9)%_filename_ext%$char(9)%genre%$char(9)%comment%$char(9)%bpm%$char(9)%_bitrate%
$loopend()

```

and you sort by the %\_filename\_ext% - you do not say what the

> [@Scorpius](#):
>
> sequential order

would be  
If you want to keep the same order as the one that you have in the filelist then use $loop(1) instead.  
If you want to sort by ARTIST; ALBUM and then by TRACK, use $loop(%artist%%album%$num(%track%,2))

---

_[View the full topic](https://community.mp3tag.de/t/exporting-to-excel-part-2/62647)._
