Absolute sorting does not work

Absolute sorting does not work

SujitJSujitJ Posts: 19Questions: 8Answers: 0

I want to use absolute sorting such that columns with particular value is always seen on top.

JS Fiddle : https://jsfiddle.net/SujitJ/f73g0swn/

I would want all the entries with 'London' in 'Office' column to be seen on top.

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Seems to work for me. When I click on the "Office" column London is always at the top. What browser are you using where that doesn't working?

    Allan

  • SujitJSujitJ Posts: 19Questions: 8Answers: 0

    Allan

    Thanks for your response. Clicking on the Office column shows London on the top, but ideally I would want to have it done automatically when the table is loaded without clicking on Office column.

    Also can the sorting be such that its ascending on first column but shows the London entries at top. (Right now if I click on Office column, the sorting on first column is gone)

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Use the order option to set the default order: https://jsfiddle.net/f73g0swn/1/ .

    If you want that column to be fixed (i.e. always the primary sorting) then you can use orderFixed.

    Allan

This discussion has been closed.