[Solved] Custom order list of links [closed]


TinySort is a small script that sorts HTMLElements. It sorts by text- or attribute value, or by that of one of it’s children. The examples below should help getting you on your way.

This doesn’t use jQuery and it is fast in performance.

TinySort used to be a jQuery plugin but was rewritten to remove the jQuery dependency. It is now smaller and faster (and has no dependencies). Functionality is the same but changes have been made to the parameters and options.

Just use this way:

tinysort (NodeList);

<script src="https://cdnjs.cloudflare.com/ajax/libs/tinysort/2.1.1/tinysort.min.js"></script>
<ul>
  <li><a href="#">Aeroplanes</a></li>
  <li><a href="#">Cars</a></li>
  <li><a href="#">Books</a></li>
  <li><a href="#">Diggers</a></li>
  
</ul>
<script>
  tinysort('ul>li');
</script>

2

solved Custom order list of links [closed]