i have a foreach loop that lists some nodes and theyre properties. each item in the list is displayed in a div, all of these divs have a float left making them sit next to each other from left to right on the page. Just wondering is it possible to move an item to the front of this list(far left) if, for example it has a true/false datatype property that is set to true?
change order in foreach loop
i have a foreach loop that lists some nodes and theyre properties. each item in the list is displayed in a div, all of these divs have a float left making them sit next to each other from left to right on the page. Just wondering is it possible to move an item to the front of this list(far left) if, for example it has a true/false datatype property that is set to true?
This might be what you mean?
Replace myCustomVariable with any variable that is set for that section, I have used the for-each to show where you would put the sort.
I reckon if you used a true/false you could still use Asc/desc?
is working on a reply...