Skip to content

Instantly share code, notes, and snippets.

@hackerrahul
Created May 2, 2019 12:30
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 hackerrahul/c39720dcdbb5d8f2252f5ebd5e71b651 to your computer and use it in GitHub Desktop.
Save hackerrahul/c39720dcdbb5d8f2252f5ebd5e71b651 to your computer and use it in GitHub Desktop.
<p><button onclick="w3.sortHTML('#id01', 'li')" class="w3-button w3-blue">Sort</button></p>
<ul id="id01" class="w3-ul w3-white w3-border w3-margin">
<li>Oslo</li>
<li>Stockholm</li>
<li>Helsinki</li>
<li>Berlin</li>
<li>Rome</li>
<li>Madrid</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment