Hello I am using the jquery sortable functionality on an interactive grid. I have the sorting working. I have the grid body tagged with ui-sortable and the tr elements tagged with 'data-id = #ID#' so that way I am able to grab all of the ID's. But when I drag and drop a row to a new position it does not show that way when I am grabbing the array using this: $("tbody.ui-sortable").sortable('toArray', {attribute: 'data-id'}). It's grabbing the sequence as if I had not moved a row to a new position. I can open up the consoleTools on the web browser and view the elements and see that they are in fact in the new order that I had dragged the rows into, but this: $("tbody.ui-sortable").sortable('toArray', {attribute: 'data-id'}) is grabbing some kind of stored/cached values. If I add anything to refresh the page or session then it just reverts the changes I made to the rows back to their original positions. Any one have any advice on a way to make this work?
Thanks,
Derek