sharedstreets / sharedstreets-js

SharedStreets (Node.js & Javascript)
https://sharedstreets.io
MIT License
78 stars 25 forks source link

Minor: Point and geom matching outputs fields in different order #26

Closed emilyeros closed 5 years ago

emilyeros commented 5 years ago

Most of the output fields for point matches and geom matches are the same, but they're written out in a very different order. Can we make a small change to make this consistent?

morganherlocker commented 5 years ago

@emilyeros Do you mean the order of the JSON properties? This is generally not deterministic, and determined by the JavaScript engine. In the case of an array, we should sort.

emilyeros commented 5 years ago

@morganherlocker Yes, that's what I mean. And if that's the case, then I think we can close this issue.