I would like to display a table in a formatted way on a page.
There is a maximum of 5 fields. The only mandatory one is the first one (string) and second one, any number...
Here is my sample date:
string 1, 5, 6,3,1
string 2, 1,2


string 3 1,3,1
string 4,3
string 5,1,1
string 6 1
string 7,3,1,3

I would like , in a way or another to display my data on a page this way:

string 6
----------string 5
----------string 2
----------string 3
string 4
---------------------string 7
---------------------------------string 1

so if you get what i mean:
the second field is the first that sets the order, then the second, then the third....
and depending of how many field there it is displayed more on the right of the page... a bit like a table...
thanks