Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
  <script src="http://tinysort.sjeiti.com/src/jquery.tinysort.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <p>In a second, the list below will sort itself.</p>
  <div id="mydiv">
    <ul>
      <li>one</li>
      <li>two</li>
      <li>three</li>
      <li>four</li>
      <li>five</li>
    </ul>
  </div>
  <script>
    setTimeout(function() {
      var myul = $("#mydiv").find("ul");
      myul.children().tsort();
    }, 1000);
  </script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers