Hey guys!
I'm having a little trouble creating a leaderboard using simple code.
I'm assuming an array is the way to go, because that's the only way I can think of going about storing alot of data which can be organised.
Basically, I'm wondering how to sort an array using their records (hopefully the terminology is right).
For example, say I have 3 players with 4 variables I want to store about those players individually:
static public String player[][] = new String [3][4];
How would I go about sorting the [3] arrays by their 4th record?
Thanks.
I'm having a little trouble creating a leaderboard using simple code.
I'm assuming an array is the way to go, because that's the only way I can think of going about storing alot of data which can be organised.
Basically, I'm wondering how to sort an array using their records (hopefully the terminology is right).
For example, say I have 3 players with 4 variables I want to store about those players individually:
static public String player[][] = new String [3][4];
How would I go about sorting the [3] arrays by their 4th record?
Thanks.