write reordered index as string. add help for -rp -lmp and -ri