Sorting Array

Hi everyone! I have been trying to sort an array list that contains server data, like players, map etc. However, I failed so far. I tried using this: link text
There are a lot of missing things, I tried editing but no luck. I am trying to sort the server list, by players or by ping etc. Any tips?

What missing things? Also how do you contain that data? and you project has C++ right?

Well it seemed messed up. Yes I used C++, I had a function and it had an argument, an enumeration to select the direction to sort, but that showed up as output in unreal engine. I have created a structure, with the server name, ping, players etc.