Sorting arrays

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:
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?