Need help getting this to work

I downloaded dragtable widget here: http://www.danvk.org/wp/dragtable

I am using only the headers as a kind of column configuration tool for CSV
file import configurations.

The problem I’m having is when I read the values in from the database, it
doesn’t restore the layout to the stored layout. It seems that using the
moveColumn function is where the problem lies. If I have a layout where
column 2 is moved to column 5, when I try to restore that layout, column 2
is moved to column 5, just fine, but when I am going to move column 5, it
takes the old column 2 and moves it to the place that the old column 5 was
supposed to go. Try the code and you’ll see what I mean.

Here is a demo url: http://www.listinventory.com/dragtable/draggable.html

I have hard coded a user_id in the userFileFormat script so you will get/set
valid values. Instructions are shown in the HTML.

The ajax part is not the problem, it works exactly like I want to store and
retrieve the correct values. The problem is in the dragtable code in how it
restores the positions.

Went another direction. Using a sortable/draggable from the jQuery demos.