Cancel sortable

Cancel sortable

Hi!

I have a problem with sortables cancel method. When the user moves one item in the sortable to a new place I save the position via ajax (called in "update"). If the user moves another item after his session is expired, I want to cancel his / her last move and move the item to its old place. But $( 'selector' ).sortable( 'cancel' ) reverts both moves. How can I cancel just the last move?