This commit orders the creation of the json files by registry id
This should  mean that csv files created on different machines
will have the data in the same order