Skip to content

Sort object key values in schema#5813

Merged
archmoj merged 10 commits into
masterfrom
sort-object-key-values-in-schema
Jul 17, 2021
Merged

Sort object key values in schema#5813
archmoj merged 10 commits into
masterfrom
sort-object-key-values-in-schema

Conversation

@archmoj

@archmoj archmoj commented Jul 8, 2021

Copy link
Copy Markdown
Contributor

Addressing #5801 (comment)

@plotly/plotly_js

@archmoj archmoj added this to the NEXT milestone Jul 8, 2021
@archmoj archmoj requested a review from alexcjohnson July 8, 2021 22:55
@archmoj

archmoj commented Jul 12, 2021

Copy link
Copy Markdown
Contributor Author

Awaiting review.

@alexcjohnson alexcjohnson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 LGTM!

I noticed one Object.keys that survived unsorted is the svg marker.symbol list:

Object.keys(SYMBOLDEFS).forEach(function(k) {

That's good, because these symbols are in the order of their numeric codes, it would be weird to sort them alphabetically.

@archmoj archmoj merged commit 5114dbb into master Jul 17, 2021
@archmoj archmoj deleted the sort-object-key-values-in-schema branch July 17, 2021 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants