• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Prefix order when moving a thread

Razasharp

Well-known member
#1
Seems to display in order created, rather than by order set/weight - I get confused every time as I'm expecting a certain order :p
 

Mike

XenForo developer
Staff member
#2
This works correctly for me. Can you give specific steps to reproduce? (Preferably with a simplified test case.)

Note that if you have identical display orders, strictly speaking, the order will be undefined -- it could be displayed in either order.
 

Razasharp

Well-known member
#3
Hi Mike

I have a number of prefixes inside a group (and I have a few groups), they weighted/ordered correctly (although some in a different group were not - but they are now). In the ACP, and when posting a thread they are ordered correctly, however when you click on a thread and go to 'move thread', after selecting a different forum the prefixes are ordered incorrectly. You have to select a different forum though - otherwise they will be ordered correctly (more than one forum can have these particular prefixes).

Let me know if you can't reproduce and I can get screen grabs or give you access.
 

Mike

XenForo developer
Staff member
#4
This is a weird one. The JSON was in the correct order. It looks like the JS object ends up in the wrong order due to the numeric keys in use.

I've fixed this in 1.3 by simply using an array which maintains the order correctly. This does mean changing the keys of the output from that API call (hence, 1.3 only).
 

Razasharp

Well-known member
#5
Glad you got it sorted Mike - and glad you were able to reproduce - was beginning to think I had Gremlins in the system :lol: