JSON string parsed, received JSONArray.
From it I in a cycle select lines:
str=JSONArray.getString(i); I get strings like:
i {"a":["Andrey",22,92,172],"t1":[5.15,1.38,142564],"t2":1398618093} i+1 {"a":["Slava",25,80,170],"t1":[6.15,1.98,142565],"t2":1398615095,"t3":1398615095} ... And I do not know why I thrust them ArrayList arListPipl.add(str); .
Next, I will build a beautiful listView consisting of Andrew, Glory, etc. with their names and parameters, ordered by the first element of the t1 array.
I do not have enough experience to throw the right plan of action:
In what form do I submit my data so that they are stored in one place and I could quickly get the values of the array "t1" or "a"?
How and in what way to pack such different data in a clear for the adapter structure?
Which adapter to choose so that I can sort the list by the first element of the t1 array?