Groupcolum order
Groupcolum order
duquesimba
Posts: 3Questions: 1Answers: 0
I have a question regarding groupcolum.
I need to join the games that will belong to the same teams in the groupcolum and order them by date and time. The link has an example of what I'm talking about, the games are sorted by groupcolum and the date is out of order.
This question has an accepted answers - jump to answer
Answers
The table is sorted by column 0 and it looks like it is sorted correctly by that column. Since the
rowGroup.dataSrc
is column 0 you need the primary sorting to be by that column.I'm not clear on what sorting you are trying to achieve. If you are wanting to include the date column and the time column then use
orderFixed
set to column 0 so its always sorted first. Then you can useorder
to order by the other columns if desired.If this doesn't help then please provide more specifics of what you want.
Kevin
So, if I put orderfixed and then order by date and time, the rowgroup doesn't work, in the example I put you can see the issue.
I need to make a rowgroup by column 0 and that it be sorted by columns 1 and 2, but without pressing the rowgroup
The problem is that you don't have the RowGroup extension software loaded in the test case. I updated the test case to load the extension plus the
orderFixed
andorder
options.http://live.datatables.net/gaxuxoho/4/edit
Kevin
This is the problem I try to solve, in your example it is not sorted by date
I updated the test case with a couple more rows for
TIME M x TIME A
. It shows that the dates are properly sorted within each group. Are you looking for something different?http://live.datatables.net/gaxuxoho/7/edit
Kevin