Fixes: https://github.com/bblfsh/dashboard/issues/101
Actually there is a hard-coded order for some "properties".
InternalType, Properties, Token, Positions, Children.
I changed that order and put Children to the end.
The properties inside Properties (yeah, confusing) are sorted already because it's dict and Object.keys returns keys in order. (even specification doesn't say so, but all browsers work like that)
Fixes: https://github.com/bblfsh/dashboard/issues/101 Actually there is a hard-coded order for some "properties".
InternalType, Properties, Token, Positions, Children
. I changed that order and putChildren
to the end.The properties inside
Properties
(yeah, confusing) are sorted already because it's dict andObject.keys
returns keys in order. (even specification doesn't say so, but all browsers work like that)