Skip to content

Instantly share code, notes, and snippets.

@rscardinho
Created April 16, 2019 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rscardinho/ea15aff1fdb44f13d753f05961cdbd99 to your computer and use it in GitHub Desktop.
Save rscardinho/ea15aff1fdb44f13d753f05961cdbd99 to your computer and use it in GitHub Desktop.
alphabetical-sort-reference
function sort() {
var sortableList = $('.sortable-category');
var listitems = $('.draggable-category', sortableList);
listitems.sort(function (a, b) {
return ($(a).text().toUpperCase() > $(b).text().toUpperCase()) ? 1 : -1;
});
sortableList.append(listitems);
}
@Bluechwe46
Copy link

Standing together as a unit, there is greater strength and efficiency to achieve common goals than if it were worked for individually. This is one of the greatest advantages of joining the HSU. BlueChew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment