Hi Teuta,
Have you tried working with the 'Utility - Collection Manipulation VBO' that comes bundled with Blue Prism for this? It contains a "Sort Collection" action that could potentially do what you're looking for here, with all of its actions outlined in this KB article here.