question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Out of order properties

See original GitHub issue

I have the following configuration, However, I observe that my view the sections are coming in the wrong order. Can you give me any suggestions for a fix.

schema:{
            "title": "NGLA Schema",
            "type": "object",
            "options":{
                        "disable_collapse": true
                    },
            "properties":{
                 "project": {
                      "title": "Project",
                      "$ref": "#/definitions/project"
                  },
                 "sources": {
                      "title": "Source",
                      "$ref": "#/definitions/source"
                  },
                  "type1": {
                      "title": "Pattern Recognition",
                      "$ref": "#/definitions/type1"
                  },
                  "type2": {
                      "title": "Type 2 Parameters",
                      "$ref": "#/definitions/type2"
                  },
                  "type3": {
                      "title": "Sequence Analysis",
                      "$ref": "#/definitions/type3"
                  },
                  "type4": {
                      "title": "Volume Analysis",
                      "$ref": "#/definitions/type4"
                  },
                  "type5": {
                      "title": "Type 5 Analysis",
                      "$ref": "#/definitions/type5"
                  },
                  "type6": {
                      "title": "Type 6 Parameters",
                      "$ref": "#/definitions/type6"
                  },
                  "type7": {
                      "title": "Type 7 Analysis",
                      "$ref": "#/definitions/type7"
                  },
                  "type8": {
                      "title": "Type 8 Analysis",
                      "$ref": "#/definitions/type8"
                  },
                  "type9": {
                       "title": "Type 9 Analysis",
                       "$ref": "#/definitions/type9"
                  }
            },

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
WrathZAcommented, May 27, 2016

Have you tried implementing property ordering?

https://github.com/jdorn/json-editor#property-ordering

0reactions
emilb604commented, Feb 28, 2018

having the same issue, I have large schema, don’t wanna use propertyOrder redundantly, since the order is expected to be the same as in schema…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does JavaScript guarantee object property order?
As a note, properties order in objects weren't guaranteed at all before ES2015. ... Property order in normal Objects is a complex subject...
Read more >
Are JavaScript Object Keys Ordered and Iterable?
Do JavaScript object properties have an intrinsic ordering? Can you iterate over a JavaScript object according to the order of the object keys?...
Read more >
164 - Wrong order in Object properties interation - v8 - Monorail
I frequently use objects which I iterate through to print out a list that is sortable. I make the property an ID to...
Read more >
Order of Operations - PEMDAS - Math is Fun
Order of Operations PEMDAS. Operations. "Operations" mean things like add, subtract, multiply, divide, squaring, etc. If it isn't a number it is probably...
Read more >
order - CSS: Cascading Style Sheets - MDN Web Docs
The order CSS property sets the order to lay out an item in a flex or grid container. Items in a container are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found