You can add the order type as another parameter to the link (ASC or DESC)
too. Then, at the moment of link generation, you check for the column that
is being used for ordering. In that link you then just change the order type
to the opposite of the actual one (so, if the user is looking at a user l
On Mon, 16 Aug 2010, Parijat Kalia wrote:
> That's exactly what I am trying to explain. Currently what I am doing right
> now is using a select_tag, with options that trigger corresponding queries
> to alter the sort order presented in the page. Any better ideas over how
> this may be implemented?
hEY Eno,
That's exactly what I am trying to explain. Currently what I am doing right
now is using a select_tag, with options that trigger corresponding queries
to alter the sort order presented in the page. Any better ideas over how
this may be implemented?
On Mon, Aug 9, 2010 at 9:29 PM, Eno wr
On Mon, 9 Aug 2010, Parijat Kalia wrote:
> I have a table, with about 10 columns, offcourse for displaying my data. I
> know, there are several sites that let you click on the header of these
> table rows, and switch the display data accordingly. for instance, if one of
> my column headers is Ques
Hey guys,
Apologies for including a symfony unrelated question here. But it is PHP
related, and makes use of the pagination that symfony provides.
I have a table, with about 10 columns, offcourse for displaying my data. I
know, there are several sites that let you click on the header of these
tab