Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

DataTable Sort Issue (no replies)

$
0
0
I'm populating a DataTable with some data that I want to sort by the column 'label' as the order the table is populated in is not being maintained when I render the table (as either a table or evolution graph)

To apply the sort I'm currently using the following method in my API method before returning the table to the controller:

$dataTable->filter('Sort', array('label', 'desc', true, true));

However, this seems to behave strangely. Changing the sort order makes a different, but the resulting order is neither truly ascending or descending, am I doing something wrong?

Also, is anyone able to explain why the original population order isn't maintained?

Viewing all articles
Browse latest Browse all 4243

Trending Articles