I'm using Datatables to display some data. I also have inputs that are used to add a new row to the data. When I add this row, I reinitialise the table, and it automatically sorts the new row according to the sorting rules I give it. My question is this: Is there a way to get the data from the table in the order it's currently being viewed? Whenever I try $('#tableCompetitors').dataTable().fnGetData(), it gives me the data in the order it was added to the table not the ordered it's being presented in.

So is there an easy way to do what I want?

P.S. If it helps. The original datasource is an array of arrays that is provided from a textbox. I parse it, push it to an array, then use that array as the datasource.

Edit
Report