I want to use two-dimensional array to sort the score by the largest to smallest

String[]score=loadStrings(“score.csv”);


for (int i=1; i<score.length; i++) {
String [][]tokens=split(score[i][], “,”);
int scores=Integer.parseInt(tokens[i][1]);
}

//a = sort(a);
//a=reverse(a);

scores[i][1]=sort(scores[i][1]);
scores[i][1]=reverse(scores[i][1]);

// and I have to use the returned values to create a new CSV file to save it.

1 Like

Processing.org/reference/loadTable_.html
Processing.org/reference/Table_sort_.html

3 Likes

Thank you GoToLoop! ,i’ll check the link!