I've managed create a metabox that lets me upload and then fetch the images and then also been able to add jquery ui sortable to be able to sort the images, however I've no idea how to add actual functionality so that the sort order get saved.
If someone has an idea how to achieve this or some tutorial that would be helpful, please share, I'm helplessly stuck here.
Thanks.
Edit:
Basically, what I need to know is how to tie jQuery sortable together with the functionality that handles the different attachments menu_order.