Arrange items programmatically

Please make the .children array read & write or introduce some new APIs to re arrange the elements programmatically.