hi,
i want to set a default order for a CSort and ordering a gridview for multiple cols.
i have this table:
Artist|Date|City
----------------
AC/DC |1990|London
U2 |1983|Dublin
AC/DC |1984|Berlin
i want first sort for artist and next for date to get this table:
Artist|Date|City
----------------
AC/DC |1984|Berlin
AC/DC |1990|London
U2 |1983|Dublin
in SQL i would simply write " ORDER BY Artist ASC,Date ASC".
how can i set this default order in CSort?
this does NOT work (got Error "Undefined index: Artist, Date "):
$sort->defaultOrder = array(
'Artist' => false,
'Date' => false,
);
looks like default order only works for one argument?!
any ideas?