Closed
Bug 1076890
Opened 11 years ago
Closed 11 years ago
Add option in Object Viewer to NOT sort properties of the object
Categories
(DevTools :: Object Inspector, defect)
DevTools
Object Inspector
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 810576
People
(Reporter: psivolob, Unassigned)
References
Details
Attachments
(1 file)
|
5.84 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Build ID: 20140923175406
Steps to reproduce:
1)Type in the Dev tools console:
var contact = {
id: "5847",
group: "student",
fname: "John Q.",
lname: "Public",
email: "john_q@domain.com",
phone: "888-555-5555"
}
2)click on the "Object" link to open and view the content on the right hand side.
Actual results:
On the right have side you see object viewer with properties listed in the alphabetical order. See attached picture.
Expected results:
There are different use cases why you want to see content of the object.
1)If you want to examine a value of the particular property then having properties in alphabetical order is perfect.
2)You may want to see the natural order of properties in the json. Object.keys(content) gives it to you. However it would be nice to see key/value pair in the natural order.
Can you please add option(for example a checkbox) to the ObjectViewer bar to enable/disable properties sorting.
I would like to be able to see properties of the object in the natural order they where added.
Comment 1•11 years ago
|
||
For reference, this was initially reported to Firebug:
https://code.google.com/p/fbug/issues/detail?id=4231
Sebastian
Component: Untriaged → Developer Tools: Object Inspector
OS: Windows 7 → All
Hardware: x86_64 → All
Version: 32 Branch → unspecified
Comment 2•11 years ago
|
||
Set devtools.debugger.ui.variables-sorting-enabled to false.
See bug 810576.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
As I described earlier depending on the use case you may or may not be interested in seeing properties sorted.
Yes, you may use devtools preference to control sorting behavior as long as there is UI(checkbox) right in the ObjectViewer.
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•