reordering results file output