Tree order save in DB after drag drop action

Hi,
I’m using the coldfusion dataprocessor and i want to store the order of items under a parent in a database after a drag and drop. does anybody have some example code for this?
regards,
Mathijs