https://github.com/esnet/esnet-matrix-panel/blame/ec34da34156612cd761b5a971135b33419f8e508/src/dataParser.ts#L78-L79
I skimmed the source code think this is the reasons why fields are in the wrong order.
This is due javascripts default sort
A solution would be to just honor the original order of the data or to provide a compare function.
Example of how the wrong ordering looks:
