Like everyone, I have groups within groups. Let’s say Group A contains SubGroup B.
I want the default position of SubGroup B within Group A to be “Make first”, but when some condition is met, I want the position of SubGroup B within Group A to be “Make last”.
This would probably work if you use dynamic css classes in the element id, so if condition is met set an custom state to true/first for example then change the css class.
code would go into the page header
#subgroup-b-first {
order: -1; /* Makes it appear first */
}
#subgroup-b-last {
order: 9999; /* Makes it appear last */
}