Re-order file attachments I am using tcpdf to generate a PDF. The PDF generation adds images that have been uploaded. The order of the images matters. After I upload files in Drupal 6 using the upload module, Drupal 6 randomly orders the images (or attachments).

The uploaded images are draggable. But when I drag them to re-order and hit save, the order goes back to what Drupal thinks is best.

How can I change this behaviour to let Drupal recognise my re-ordering?

Thanks
It looks like your re-ordering script is buggy. Make sure it saves the state of the ordering. There should be something in your re-ordering script that tracks the order. Make sure it works. This can be fixed if you have access to the re-ordering script.