Order option extended also for string values instead of only numbers

Order option extended also for string values instead of only numbers

MausinoMausino Posts: 44Questions: 11Answers: 0
edited August 20 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: 54,881Questions: 1Answers: 8,601 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.