Is there a way to sort map{} in verse?

Hello!
I have an map{} which contains [agent]int.
And I want to make new map with highest int number to lower number.
How can I do this?

2 Likes

From the documentation here Map | Unreal Editor For Fortnite Documentation | Epic Developer Community

Elements in a map are ordered based on the order of key-value pairs when you create the map

You will need to iterate through your map and get the int values to sot them yourself Iā€™m afraid.