Ordering Flow from DB

Ordering Flow from DB

aravind167aravind167 Posts: 7Questions: 3Answers: 0

My Records order should ["F" , "B" ,"S","C","Z"] --> same order i ve in db
In Datatble By default it's Sorting either [Asc/Desc]
I tried Disabling sorting
Colums.orderable()
"ordering":false , but both didn't worked
if it's disable , records populated in descending order

Answers

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    The ordering and columns.orderable only affect the endusers ability to click and order the columns. The order option sets the initial table order. By default column 0 is sorted ascending. If you want to order the table by how its ordered from the DB then use `order: [],'.

    Kevin

This discussion has been closed.