How I can get HTML with another sequence (depending on user settins)
You should do it in your PHP code. In a query you could use different "ORDER BY" statements. In an array you could use ASC or DESC sort algorithm.
Here is an example. It could be modified easily with "ORDER BY".
Create your loop arrays as you want to:
some1 = array;
while row = mysql_fetch_arrayresult
{
array_pushtable_data, array
name = rowname_user1,
birthday = date-formatDaterowbirthday_user1, %A, %d.%m.%Y,
city = rowcity_user1
;
}
tmpl-setloopsome1, some1;
or
some1 = array;
while row = mysql_fetch_arrayresult
{
array_pushtable_data, array
name = rowname_user2,
birthday = date-formatDaterowbirthday_user2, %A, %d.%m.%Y,
city = rowcity_user2
;
}
tmpl-setloopsome1, some1;
Regards,
Claus