This patch makes the request for a re-ordered IndexTable less picky about the current state of the index table. I found it useful for handling XDCAM HD index tables.
Patch to make index table reordering less picky
Patch to make index table reordering less picky