Brackets display order - [ ] ( ) { }

And that is the problem

I thought for a long time on my system, adjusting it from time to time, changing the meaning of a sign, adding a new one, simplification what I could, writing down all the rules with edge examples and so on. The last changes I made were in last year [which make the album names sometimes not correct in terms of English grammatical rules but easily readable and distinct when multiple version of a given record are present] - and I am finally happy with the results, feeling that the work is complete. If I had time machine I would send my system to myself something like 15 years back in time, because that is more or less the time that I started to work on it

I will simply not change the system because of how Mp3tag o FreeCommander handles files. I already utilize practically every character from the keyboard [and there is also the issue of illegal characters] plus some that are not present on them


So, if I correctly understood how the $replace() function works and your last explanation, for me this story ends here

If you expand the number key-characters so that you cater for all the exceptions (you would have to count the separate cases for that) from one to several, you could get your preferred sorting order.
So if you do not simply replace a single character with another single character

but with (just an example)
$replace(%TITLE%,'[',_01,'+',_02,'{',_03,'(',_04,'#',_05)
you should get a many more exception cases for a special treatment.

[It seems that every time I get back to Mp3tag forum I have a span of 2-3 days that I can utilize for it - and then I need to get back to other things, prolonging such discussion]

If I get you right: you are conforming my conclusion? That it is impossible?

Unless [and here comes the second workaround, with the first being a big reworking of the naming system thus the usage of various special / graphical characters] I turn my single digit numbers into at least two digit numbers?


This might seem like a proper thing to do, and most surely not so time consuming with the usage of Actions. Unfortunately some of the [no only single digit] numbers are real titles [like "Room 123"] while others are technical ones which I always I proceed with a # [like "Piano Sonata #3 In B Minor, Opus #58, Movement #3: Largo" or "Star Trek #7 Opening Titles"]. And some of the real ones would still mess up the system [making it not working not 100% of the time]

Or did I get your last answer wrong?

I did not invent your naming system.
Only you know how many exceptions have to be taken care of.
If (apparently) there are more than just 10 of them (digits 0 to 9) the size of the key has to big enough.
The cases that you mention

are probably irrelevant as you wanted to have the brackets taken care of that are at the front of a string...
What I don't understand is the idea that

would be necessary as the whole expression for sorting is a mere virtual one that is used in the "Sort by" field of a column definition. So actually there is nothing being renamed...

Yes, that is it

But that became obvious to me only after tampering with further extended versions like
$replace(%TITLE%,'[',01,'+',02,'{',03,'(',04,'#',05,'0 ',06)
and
$replace(%TITLE%,'[',01,'+',02,'{',03,'(',04,'#',05,'0',06,'1',07,'2',08,'3',09,'4',10,'5',11,'6',12,'7',13,'8',14,'9',15)
which were getting me nowhere, because

So going back through our discussion and stumbling on the next sentence from that replay of your quoted just above which was

made it clear to me how to work around that issue. But there it was already in a form ready to use

Stupid me for not figuring this out earlier on and kudos to you for sticking with this discussion

Going further with this I wanted to mix this sorting of TITLEs / FILENAMEs into one sort order with what I need to use for ALBUM which is
$replace(%ALBUM%,'<',,'>',)

But I failed as
$replace($replace(%ALBUM%,'<',,'>'(%TITLE%,'[',_01,'+',_02,'{',_03,'(',_04,'#',_05)))
and
$replace(%ALBUM%,'<',,'>'($replace((%TITLE%,'[',_01,'+',_02,'{',_03,'(',_04,'#',_05)))
used for Sort by simultaneously with Value and Field set to %ALBUM% do not seem to work

Does anyone know how to merge this correctly?


[But even if this is un-mixable, then I can still use it simultaneously. In that all I have to do is to first sort file list by TITLE [by clicking its Column which holds it its Sort by field the $replace(%TITLE%,'[',_01,'+',_02,'{',_03,'(',_04,'#',_05) code] - and then sort files by ALBUM [by clicking its Columns that holds the $replace(%ALBUM%,'<',,'>',) code]

Could you check your nested $replace() calls for correct syntax?
I simply do not understand what

is supposed to do.
Couldn't you just give an example of the contents of both fields and then what you want the final result to look like?

The idea is contained in this epilogue-ish explanation

In other words:

I finally can sort my FILENAMEs / TITLEs exactly how I need to. And so I wish I could also have that sorting applied to them every time when I sort by ALBUM. Right now I have to do this manually, i.e. in two steps: first sort by [Column for] FILENAMEs or TITLEs and then sort by [Column for] ALBUM [because Mp3tag retains sorting in the FILENAME / TITLE when I clicks headers of other Columns]

The $replace(%ALBUM%,'<',,'>',) code for ALBUM provides me with such desired order

Blade Runner <Movie Score>
Blade Runner <Movie Score> <25th Anniversary Edition>
Blade Runner <Movie Score Unreleased>          ! ! ! ! ! ! ! ! ! !
Blade Runner 2049 <Movie Score> <2018 Eisengeist Edition>
Blade Runner Orchestral Adaptation

instead of the default one which looks like this

Blade Runner <Movie Score Unreleased>          ! ! ! ! ! ! ! ! ! !
Blade Runner <Movie Score>
Blade Runner <Movie Score> <25th Anniversary Edition>
Blade Runner <Movie Score> <Esper Retirement Edition>
Blade Runner 2049 <Movie Score> <2018 Eisengeist Edition>
Blade Runner Orchestral Adaptation

[I had to add that `` ! ! ! ! ! ! ! ! ! !`` as a maerker to the ``Blade Runner <Movie Score Unreleased>``, because I could not make it stand out in any other way because the Forum kept messing up what I was writing]

As for the FILENAME / TITLE it has been thoroughly discussed in this topic. But it comes down to the same principal rule: of putting certain "annotations" and markings before others; with the ones contained in [ ] being the foremost while the ones starting with # being of the least "importance" to my naming system]

I seriously doubt that as this is the result I get when I copy&paste the format string that you supplied: