Issue 4382: JSON sorting

JSON Array

Steps to reproduce

  1. Open Firebug
  2. Enable and switch to the Net panel
  3. Click the Send array request button
    ⇒ There should be a request to json.php?type=array shown inside the request list
  4. Expand the request to json.php?type=array
    ⇒ There should be a JSON tab
  5. Expand the JSON tab
    ⇒ The array items should be listed in numerical order (1, 2, 3, …)
  6. Click the Sort by key link ⇒ The order shouldn't change

Expected result

JSON Object

Steps to reproduce

  1. Open Firebug
  2. Enable and switch to the Net panel
  3. Click the Send object request button
    ⇒ There should be a request to json.php?type=object shown inside the request list
  4. Expand the request to json.php?type=object
    ⇒ There should be a JSON tab
  5. Expand the JSON tab
    ⇒ The object properties should be listed in the order they were defined (5, 2, 15, …)
  6. Click the Sort by key link ⇒ The object properties should be listed in alphabetical order (1, 10, 11, …)

Expected result