(1) write reordered indexes without commas and brackets to file (2) do not join input from reordered indexes