I hava sortable list using jQuery UI Sortable. When the items are re-ordered the new order is written to the database. All working fine however, if I use jquery to add a new item ....

$('.litodo:first-child').before('<li id="todosArray_300" class="litodo"><a href="" id="300" class="todo active">'+todotext+'</a></li>');
then this item is 'sortable' on page and even calls the "update order" function but doesn't actually update the database.

View the example here

Can some find my bug?!?