# Is this a sorting bug?

**URL:** <https://community.mp3tag.de/t/is-this-a-sorting-bug/56113>\
**Category:** Support\
**Created:** [January 29, 2022, 12:18pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113 "2022-01-29T12:18:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simos\_Sigma](https://community.mp3tag.de/user_avatar/community.mp3tag.de/simos_sigma/32/9966_2.png) [@Simos\_Sigma](https://community.mp3tag.de/u/Simos_Sigma)\
**Post date:** [January 29, 2022, 12:18pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113/1 "2022-01-29T12:18:57Z")

</div>

I am not sure but I think this is a sorting bug...

■ Here is how Windows explorer list my files sorted by filename:

![explorer](https://community.mp3tag.de/uploads/default/original/2X/8/8c61aa3e8f44ef530084ddb9849c0f79cfaf706f.jpeg)

■ Here is how an other program (_which I use to get some measurements_) list my files into it's `csv` file sorted by filename:

![mr](https://community.mp3tag.de/uploads/default/original/2X/3/323c5089dc23dde1225770303281fbe8a33aaa03.jpeg)

■ And here is how `Mp3tag` list the same files sorted by filename:

![mp3tag](https://community.mp3tag.de/uploads/default/original/2X/0/00b72cb2ce7a607698bfa76e412e1de1c727ac5d.jpeg)

As you can see, `Mp3tag` sorting is different!!!

So, in my case, where I have to import those measurements from this `csv` file it is a problem. Because wrong measurements go to wrong files.

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [January 29, 2022, 12:23pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113/2 "2022-01-29T12:23:23Z")

</div>

> [@Simos\_Sigma](#):
>
> So, in my case, where I have to import those measurements from this `csv` file it is a problem. Because wrong measurements go to wrong files.

Are you sure?  
If your CSV file contains the filename, Mp3tag should assign the values from the XYZ-track to the matching filename in Mp3tag. Or I'm wrong?

---

<div class="post-metadata">

**Author:** ![Simos\_Sigma](https://community.mp3tag.de/user_avatar/community.mp3tag.de/simos_sigma/32/9966_2.png) [@Simos\_Sigma](https://community.mp3tag.de/u/Simos_Sigma)\
**Post date:** [January 29, 2022, 12:25pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113/3 "2022-01-29T12:25:49Z")

</div>

I think not but give me some time to recheck it and I'll tell 100%!!!

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [January 29, 2022, 12:28pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113/4 "2022-01-29T12:28:55Z")

</div>

According to [the help](https://docs.mp3tag.de/converters/import-tags-from-text-files) Convert Text file -\> Tag should ensure the correct file gets tagged:

 ![image](https://community.mp3tag.de/uploads/default/original/2X/f/f20b4422dbc58a00fa85df21e20c9e627d2da1cb.png)

---

<div class="post-metadata">

**Author:** ![Simos\_Sigma](https://community.mp3tag.de/user_avatar/community.mp3tag.de/simos_sigma/32/9966_2.png) [@Simos\_Sigma](https://community.mp3tag.de/u/Simos_Sigma)\
**Post date:** [January 29, 2022, 12:31pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113/5 "2022-01-29T12:31:17Z")

</div>

Hmmm... I didn't know that!!! I'll test it right now...

---

<div class="post-metadata">

**Author:** ![Simos\_Sigma](https://community.mp3tag.de/user_avatar/community.mp3tag.de/simos_sigma/32/9966_2.png) [@Simos\_Sigma](https://community.mp3tag.de/u/Simos_Sigma)\
**Post date:** [January 29, 2022, 12:49pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113/6 "2022-01-29T12:49:11Z")

</div>

I think it can't be done...

The other program I use to get measurements exports a `csv` file which looks like this:

```auto
Filename and path;Actual bitrate;Frequency;Silence in seconds;Clipping %;Max. clipping;
C:\Users\***\Desktop\New folder\01 - Afta Ta Heria.mp3;320;20024;0,00;0,00;2;
C:\Users\***\Desktop\New folder\01 - Allos Gia Hio Travixe (Live).mp3;320;20024;0,33;;0;
C:\Users\***\Desktop\New folder\01 - An Ine I Agapi Amartia (Live).mp3;320;20024;0,00;;0;
C:\Users\***\Desktop\New folder\01 - An Ise Plai Mou (1).mp3;320;20045;0,98;;0;
C:\Users\***\Desktop\New folder\01 - An Ise Plai Mou.mp3;320;20045;0,98;;0;
C:\Users\***\Desktop\New folder\01 - Anepidoto (1).mp3;320;20089;0,00;;0;
C:\Users\***\Desktop\New folder\01 - Anepidoto.mp3;320;20110;0,00;0,00;1;
C:\Users\***\Desktop\New folder\01 - Avgi Anthismeni.mp3;320;20045;0,00;0,00;3;
C:\Users\***\Desktop\New folder\01 - Avrio Pali (1).mp3;320;20024;0,37;0,00;1;
C:\Users\***\Desktop\New folder\01 - Avrio Pali.mp3;320;20024;0,37;0,00;1;

```

From `Mp3tag`, after I load the tracks, I go to `Conver` \> `Text file - Tag`, I put the exported `csv` file into `Filename` field and I put `%comment%` into `Format string` field. And it imports the data to comment tag line by line. But it isn't assign the values accordingly as you said...

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [January 29, 2022, 12:53pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113/7 "2022-01-29T12:53:19Z")

</div>

Your format string should include the part for the filename, something like this:  
`%_path%;%comment%`

Or if you want to split the values into different tags directly:  
`%_path%;%Actual bitrate%;%Frequency%;%Silence in seconds%;%Clipping%;%Max. clipping%`

I can't test it here, you have to adjust the names and number of tags exactly to your content in your CSV file.

The help says that `%_path%` contains the complete filename including the path.  
`%_filename_ext%` would only contain the filename and extension itself, without additonal path information.

---

<div class="post-metadata">

**Author:** ![Simos\_Sigma](https://community.mp3tag.de/user_avatar/community.mp3tag.de/simos_sigma/32/9966_2.png) [@Simos\_Sigma](https://community.mp3tag.de/u/Simos_Sigma)\
**Post date:** [January 29, 2022, 1:05pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113/8 "2022-01-29T13:05:31Z")

</div>

Done!!! 😀

I just changed `Format string` field from `%comment%` to `%_path%;%comment%` as you said and it worked!!! Now it is assign the values accordingly!!!

I don't know what to say... Your are my hero man!!! 😆  
Thank you very very very much!!!

PS: Do you think I have to move my topic to "Support" section instead of "Bugs Reports"? If I can do this...

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [January 29, 2022, 1:08pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113/9 "2022-01-29T13:08:22Z")

</div>

You're welcome.

I have changed the category to "Support".  
So that I can also say: Done. 😉

---

<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 28, 2022, 1:09pm UTC](https://community.mp3tag.de/t/is-this-a-sorting-bug/56113/10 "2022-02-28T13:09:11Z")

</div>

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