Groupcolum order

Groupcolum order

duquesimbaduquesimba 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.

http://live.datatables.net/gaxuxoho/2/

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,144Questions: 26Answers: 4,736

    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 use order to order by the other columns if desired.

    If this doesn't help then please provide more specifics of what you want.

    Kevin

  • duquesimbaduquesimba Posts: 3Questions: 1Answers: 0

    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

  • kthorngrenkthorngren Posts: 20,144Questions: 26Answers: 4,736
    edited November 2022 Answer ✓

    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 and order options.
    http://live.datatables.net/gaxuxoho/4/edit

    Kevin

  • duquesimbaduquesimba Posts: 3Questions: 1Answers: 0

    This is the problem I try to solve, in your example it is not sorted by date

  • kthorngrenkthorngren Posts: 20,144Questions: 26Answers: 4,736
    edited November 2022

    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

Sign In or Register to comment.