Order option extended also for string values instead of only numbers

Order option extended also for string values instead of only numbers

MausinoMausino Posts: 61Questions: 19Answers: 0
edited August 2021 in Feature requests

Order

When i am using serverSide is very coplicated create for many modules some index of my columns because the order option only allow this

"order": [[ 0, 'asc' ],

Will nice in v2 will exist something like OrderData which will work like

"ordeData": [[ 'name', 'asc' ],

and will take the column names from data of Columns or ColumnsDefs options.

columns: [
    { data: 'DT_RowId'},
    { data: 'id'},
    { data: 'name'}
],

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Hi,

    I am indeed looking into options for exactly that. I actually did so as part of v1.10, but it was providing to be difficult with backwards compatibility.

    Many thanks for the suggestion - much appreciated!

    Regards,
    Allan

Sign In or Register to comment.