Ticket #1770

sortable incorrectly reorders ordered list


Description
thasmin:
When using a sortable where the container is an ordered list, the numbers get messed up. It looks like it adds a new list item to drag and hides the old one because if you have 1,2,3 and pick up 2, 1 and 3 will be there and 4 will be dragable.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <title>test</title>
  <script type="text/javascript" src="../scripts/jquery-1.2.1.js"></script>
  <script type="text/javascript" src="../scripts/jquery-ui.js"></script>
</head>

<body>

  <ol id="faqlist">
    <li>abc</li>
    <li>def</li>
    <li>ghi</li>
  </ol>

  <script type="text/javascript">
    $('#faqlist').sortable({
      smooth: false
    });
  </script>

</body>
</html>

  1. abc
  2. def
  3. ghi