I don't think this part is relevant as this container simply contains other Views based on screen size. It sounds like you would be using a flex repeater to display your items? If so, you just need to bind the instances array (i forget the prop name) and sort it based on your conditions
There is a very similar problem either on the Core or Gold practical section, so I just want to make sure that we aren't helping you solve that problem because it would be against the exam guidelines, very much so.
This could be a coincidence as well - I'm not accusing you of anything, I just wanted to point this out.