# Brackets display order - \[ \] ( ) { }

**URL:** <https://community.mp3tag.de/t/brackets-display-order/18381>\
**Category:** Support\
**Created:** [October 29, 2016, 6:31pm UTC](https://community.mp3tag.de/t/brackets-display-order/18381 "2016-10-29T18:31:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [October 29, 2016, 8:47pm UTC](https://community.mp3tag.de/t/brackets-display-order/18381/5 "2016-10-29T20:47:01Z")

</div>

> [@zerow](#):
>
> Yes, that checks out, thank you very much. [Although I do not understand, why is there a single \>\>)\<\< at the end of the code and not four of them, to close the equation]

Quite simple really.

If you have 1 opening ( there needs to be the same on the other side. So 3 x ( and 3 x ) on the right.

The syntax for one replace fn is:

```
$replace(string,from,to)

```

So two replace functions is:

```
$replace($replace(string,from,to),from,to)

```

Three is:

```
$replace($replace($replace(string,from,to),from,to),from,to)

```

.. and so on. The fn just so happens to lie outside.

I also write 3ds Max scripts with maxscript and it's syntax for functions is:

```
fn dosomethingcool = (
   place some cool code here
)

```

And then:

```
dosomethingcool()

```

which will run that function.

Each coding syntax is different. Much like English vs. Dutch 🙂

* * *

> [@zerow](#):
>
> The order is retained, but my first is my last ["Song" is at the bottom of the list and at the top is the "Song (Info) [Info]" which should be the last]. I can reverse the sort results in main window by clicking the column header, by it does not effect what comes out in exported list

Try this on your files:

```
$filename(C:\Test Export on $regexp(%_date%,'(\d\d)/(\d\d)/(\d\d\d\d)','$3-$2-$1').txt,utf-8)
TEST EXPORT on $regexp(%_date%,'(\d\d)/(\d\d)/\d\d(\d\d)','$1-$2-$3')
-------------------------------------
$loop($replace($replace($replace(%path%,'[',1),'(',2),'{',3))
%title%$loopend()

```

I've tried it with:

```
Song
Song [Info]
Song (Info) [Info]
Song (Info) {Info}
Song (Info) Part 2 {Info} [Info]
Song {Info}
Song Part 2
Song Part 2 {Info}

```

And it's output is the same as the fields:

```
TEST EXPORT on 29-10-16
-------------------------------------

Song
Song [Info]
Song (Info) [Info]
Song (Info) {Info}
Song (Info) Part 2 {Info} [Info]
Song {Info}
Song Part 2
Song Part 2 {Info}

```

---

_[View the full topic](https://community.mp3tag.de/t/brackets-display-order/18381)._
