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

3 (edited by CarlSim 2023-05-29 10:11:59)

Re: Sort "Additional Fields"

joakim.moller wrote:

Is it somehow possible to get these recurve bows now and sort my self created "Additional fields" from A-Z ?

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"

I am also looking for the same issue.

Elon One

6 (edited by BlackWenlo 2022-07-07 04:59:31)

Re: Sort "Additional Fields"

Support_Team wrote:

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

MyLabCorp Portal

Before the code

cn_assign('list', $list);

paste this code

ksort($list);

Good one, I had no idea about this trick. Make sense if it works pretty well. Thanks!

7 (edited by Blackburn22 2022-11-16 03:43:38)

Re: Sort "Additional Fields"

I am also encountering this issue. Don't know why its happening.
https://www.foremostpayonline.org/