(Processing 3.0) how to sort string array by value of substrings?

is anyone still around to help?

ive managed to sort the first two rows which consist of names of books and authors, but i am still having trouble sorting the numerical values of the last row.

i have tried:

mytable.sort(int(2));

but it still doesnt work.

i wold like if someone could show me how to sort the last row of numbers via bubble and insertion sort. if thats not possible than a way to do it with inbuilt sort would be fine.