Support Forum

Change members list group order

LE LeoS
LeoS
Member

I’ve been looking at this post for clues on how to change the display order of the groups in the members list:

https://simple-press.com/support-forum/sp5-general-topics/members-groups/

When I pass the group id’s in the desired order (comma seperated) in the id option, the order changes all right, but in a rather random way, also splitting up the users and the groups in multiple groups.

What am I doing wrong?

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Well passing the user group IDs is not intended to alter or have an effect on the order user groups are displayed. This will normally be by user group ID. But running some tests here I don’t see any splitting of groups or randomness to this. And remember that iof you are looking at things logged in as an admin then you will see them all regardless (which may not be desirable but is the way ot currently is).

So can you give me any more detail of what you mean by this ‘splitting up of the users’ etc?

LE LeoS
LeoS
Member

Say I have a group called Managers (ID=1) and a group called Support (ID=2) and say I order them as described above in the order 2,1.

What I get is something like:

Group Support
Supportuser1
Supportuser3

Group Managers
Manager1
Manager2

Group Support
Supportuser2

etc..

I reckon changing the group ID’s in the database is not a good idea?

Anyway, I arrived at an acceptable order by changing asc to desc

Thanks!

YS Yellow Swordfish
Yellow Swordfish
Member

Well – I am glad you have it nearer to what you would like but I am afraid I am still unable to replicate that behaviour.

I will run some more tests with a bigger data selection.