title: jQuery sortable with droppable
body: <p>My fiddle: <a href="http://jsfiddle.net/Yc9WY/42/" rel="nofollow">http://jsfiddle.net/Yc9WY/42/</a></p>
  
  <p>What you'll see here are two groups, each with 3 droppable containers defined. You can move events from group 1 to group 2, and into any slot. This works just fine.</p>
  
  <p>Once a group is full, I would like to give the user the ability to sort that group by moving events up and down. They should still be able to move the event out of the group if they choose however.</p>
  
  <p>You'll see my commented out code where I began to integrate the sortable library, but am getting odd behavior. </p>
  
  <p>Note: I cannot replace my draggable/dropable with sortable solely. I need explicitly defined droppable areas (3 per group) so that an event can exist in slot 1 and 3 of group 1. </p>
  
  <p>Here's my code</p>
  
  <pre><code>$(document).ready(function() {
  
  // $(".sort").sortable({
  //     revert: true
  // });
  
  $(".drag").draggable({
      //connectToSortable: ".sort",
      revert: true
      //helper: clone
  });
  
  $(".sort").droppable({
      drop: function(event, ui) {
  
          if (!($(this).children(".drag").size() == 1)) {
              $(this).append(ui.draggable);
  
              ui.draggable.css({
                  left: 0,
                  top: 0
              });
          }
      }
  
  });
  });
  
  &lt;div&gt;Group 1:
  &lt;ul class="parent"&gt;
      &lt;li class="sort"&gt;&lt;a href="" class="drag"&gt;event 1&lt;/a&gt;&lt;/li&gt;
      &lt;li class="sort"&gt;&lt;a href="" class="drag"&gt;event 2&lt;/a&gt;&lt;/li&gt;
      &lt;li class="sort"&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  &lt;div&gt;
  Group 2
  &lt;ul class="parent"&gt;
      &lt;li class="sort"&gt;&lt;/li&gt;
      &lt;li class="sort"&gt;&lt;a href="" class="drag"&gt;event 3&lt;/a&gt;&lt;/li&gt;
      &lt;li class="sort"&gt;&lt;a href="" class="drag"&gt;event 4&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I'm really struggling with this, thanks all!</p>