Programatically load Excel like auto-filters sorting

Programatically load Excel like auto-filters sorting

lhoffmanlhoffman Posts: 6Questions: 0Answers: 0
edited September 2013 in General
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

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    [code]
    aData.sort();
    [/code]

    perhaps? :-)

    Allan
  • lhoffmanlhoffman Posts: 6Questions: 0Answers: 0
    OMG it is that easy...thank you!
This discussion has been closed.