Sort a list alphabetically using jQuery

1
2
$(function() {
$.fn.sortList = function() {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
On some cases, it can be very useful a sort a long list by alphabetical order.

This snippet take any list and order its element alphabetically.

#jquery #sort #alphabet #alphabetically

#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.