Dynamically changing order of elements in a component from a page