Avoid stochastic bug due to parser issue in MAD-X
Sort MAD-X parameters

See comments…