Open withinsight opened 1 year ago
The token output should retain the sort order from the source JSON, right?
@withinsight you would think so, but it doesn't sound like it: https://github.com/amzn/style-dictionary/issues/777#issuecomment-1040851259
I'm experiencing an odd behavior with the sort order of token output.
When I have the top-level JSON source as uppercase, if I change to lowercase, the output sort order changes (it should not).
For example, if I change this JSON:
to this:
and then build Style Dictionary, it changes the sort order in the token output apparently randomly:
Further, if I prefix the lowercased source JSON with numbers, it retains the proper sort order in the output, for example: