Alphabetize sorting filters

Alphabetize sorting filters

SushiKSushiK Posts: 4Questions: 0Answers: 0
edited February 2012 in General
I implemented the filter capability using this example :

http://datatables.net/release-datatables/examples/api/multi_filter_select.html

How could I make it so those select dropdowns returned the filter options alphabetically? Any ideas or examples how to do this?

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Just sort ( .sort() ) the array of selection options passed into the fnCreateSelect function :-)

    Allan
  • SushiKSushiK Posts: 4Questions: 0Answers: 0
    Great! Thank you :)
This discussion has been closed.