Programatically load Excel like auto-filters sorting
Programatically load Excel like auto-filters sorting
In the example listed below...Does anyone know if there is an easy way to sort the data in (aData) before populating it into the select HTML?
http://datatables.net/examples/api/multi_filter_select.html
In the code:
function fnCreateSelect( aData )
{
// Do sorting of the aData array here before loading into the select element
var r='', i, iLen=aData.length;
for ( i=0 ; i
http://datatables.net/examples/api/multi_filter_select.html
In the code:
function fnCreateSelect( aData )
{
// Do sorting of the aData array here before loading into the select element
var r='', i, iLen=aData.length;
for ( i=0 ; i
This discussion has been closed.
Replies
aData.sort();
[/code]
perhaps? :-)
Allan