Exporting as displayed on screen - a help, please

Good morning, friends. I'm once again asking for your help. Using the $Replace(%field%, ,) tip, I managed to get the songs to display in alphabetical order correctly, ignoring whitespace and considering only the characters.
But...
When exporting, using the action files that come with mp3tag, the program doesn't export in the same (alphabetical) order as the current display, but in the order in which the songs were added to the hard drive (or using the white space as per windows explorer order). Any tips, please?
Thanks in advance.

Modify the main $loop() to $loop(1).
That should take the order as found in the selected files.

It worked perfectly!!
Thank you very much for your help!!