Topic: Sort "Additional Fields"

Is it somehow possible to sort my self created "Additional fields" from A-Z ?

Re: Sort "Additional Fields"

To sort your field names from A to Z, please edit the file core/modules/dashboard.php

Before the code

cn_assign('list', $list);

paste this code

ksort($list);
Best regards,
CN Support team

Re: Sort "Additional Fields"

Does this work for the numerically named Additional Fields too?

Re: Sort "Additional Fields"

Sorting is made in the lexicographical order: the numbers are sorted as characters, it turns out that 0 goes before 1, but 2 is less than 10, since the comparison is done lexicographically, by characters, not by numbers.

Best regards,
CN Support team

Re: Sort "Additional Fields"

In my opinion you commit an error. I can defend the position. Write to me in PM.


If you liked this article and you would like to get much more data about How many points are in backgammon or Who is the owner of MGM Grand Las Vegas kindly pay a visit to our own web-site