Reorder index file