If anyone is still looking for a way to sort a map by values from highest to lowest (while keeping the keys attached to the correct values), I figured out a blueprint way to do it. This example works with a map of two integers - for example playerID (key) and score (value). It’s a bit messy but it works. The map to be sorted in this BP is “Data Table Current Scores”, all other variables are made just for the purpose of this function. The sorted map is “Data Table Current Scores Sort Final”. (Ignore the third step in the Sequence node, that’s just what I do next with the sorted map for my game)
2 Likes
