domingo, 24 de noviembre de 2013

sortMe - How to sort elements with Jquery


SortMe Jquery

By http://jquery-manual.blogspot.com


Descargar en GITHUB

sortMe Sort the selected items ASC or DESC through numbers, letters or letters and numbers.

The first parameter of the function accepts one of the following values:
  • number: Sorts the elements from numbers.
  • letter: Sorts the elements from letters, including Latin characters.
  • both: Sorts the elements from letters and numbers.

The second parameter (optional) contains the following option:
  • reverse: false | true . default false, sort asc or desc.


  • 23
  • 120
  • 33
  • 55
  • 12
  • 6
  • 1
  • 5
  • 88

$("#btn-1").click(function(){
$("#list-1 li").sortMe("number", {reverse: false});
});


  • Sort
  • Bind
  • jQuery
  • List
  • Order
  • Action
  • Letter
  • Number
  • Both

$("#btn-2").click(function(){
$("#list-2 li").sortMe("letter", {reverse: false});
});


image-30.jpg

image-12.jpg

image-8.jpg

image-1.jpg

image-7.jpg

image-14.jpg

image-99.jpg

image-88.jpg

image-33.jpg


$("#btn-3").click(function(){
$("#box p").sortMe("both", {reverse: true});
});





No hay comentarios: