Kelo.In Sun 03 July 2022 Time
Kelo.In

Selectsorter

Selectsorter

Selectsorter

  • Tested using jQuery 1.4.2
  • Using bubblesort as the sorting algorithm
  • Can sort in ASC or DESC directions
  • Sorts the given select
  • version 0.1
  • Tried to add some description as to how to use the comparer.
  • The speed is now greatly increased, did some speed tests on the random_words select, and it went from 278ms to 20ms.
  • The user can now use a custom comparer function, by passing the ‘comparer’ a function
  • Added a default comparer called text_compare, to compare the option’s text
  • Using the built in sort() function
  • version 0.2
  • Fixed a bug in the DESC sorting.
  • Added better examples to the demo.html file.
  • version 0.3
  • Added a minified version (jquery.selectsorter-min.js)
  • Selects with size 1 had a problem with selecting the correct item again after the list was sorted.
  • version 0.4
  • Changelog:
  • In the demo script, I have included a custom comparer function, which shows you how to randomize the content in the select box. This will make it easier for you, to build your own custom sorting mechanisms and extend the SelectSorter easy!
  • You can easily sort the items in the select box ascending (A-Z) and descending (Z-A). You can even ignore casing.
  • jQuery script for sorting a select box’s option elements.
  • Last Update : Date: 22 October 10
  • Created : Date: 15 October 10
  • Compatible Browsers : IE8, Firefox, Safari, Chrome 4, Chrome 5
  • Files Included : JavaScript JS, HTML
  • Software Version : jQuery
  • Tags : select, select box, sort, sortable, sortable list

Buy Original Selectsorter Now from Codecanyon

0 Comments.

leave a comment

You must login to post a comment. Already Member Login | New Register