sortable explaination

sortable explaination

hello every one
i want to use this code 
and i made it as i need 
but i want to make it save my changes as cookies
i think that done with ubdate function is this right and if it is 
explain it to me how to make it work