Sort column desc

Sort column desc

sarahngbsarahngb Posts: 1Questions: 1Answers: 0
edited August 2015 in Free community support

Hi, I'm a bit of a newbie so I'm trying to sort my Inline Google Spreadsheet Viewer table to sort the 1st column in descending order by default, and I understand I need to probably work with 'order' or 'aasorting' - but I'm struggling with which, and where exactly or how to get my table ID to insert instead of #example and if I'm doing it right by placing it in header.php before </head> and between

So:

$(document).ready(function() { $("#example").dataTable({ "aaSorting": [ [0,'desc'] ] }); });

Is that right? The other thing I'm not sure of, is whether the no js class in the header.php affects this?

Thank you so much

This discussion has been closed.