title: JSONObject keys order reverse
body: <p>I searched across many sources but could not find the answer to this one..</p>
  
  <p>Its a know fact that a JSONObject keys are returned in reverse order.</p>
  
  <p>Is there any way to recurse through a JSONObject in the correct order as appearing in JSON</p>
  
  <pre><code>String json;
  JSONObject obj = new JSONObject(json)
  Iterator&lt;String&gt; keys = json.keys()   ---&gt; order is reversed
  </code></pre>
  
  <p>I understand JSONObject is unordered, perhaps there is a way to order it????  </p>
  
  <p>JSON is of type below..and the keys start getting recursed from the bottom most styleHint tag  </p>
  
  <pre><code>"sections": {
  
  
   "1": {
      "1": {
        "1": {
          "title": "xxx",
          "text": "xxx",
          "tags": {
            "audience": {
              "1": {
                "name": "xxx",
                "title": "xxx",
                "id": "xxx"
              }
            },
            "styleHint": {
              "1": {
                "name": "xxx",
                "title": "xxx",
                "id": "xxx"
              }
            }
          }
        },
        "title": "xxx",
        "text": "xxx",
        "tags": {
          "audience": {
            "1": {
              "name": "xxx",
              "title": "xxx",
              "id": "xxx"
            }
          },
          "styleHint": {
            "1": {
              "name": "xxx",
              "title": "xxx",
              "id": "xxx"
            }
          }
        }
      },
      "2": {
        "title": "xxx",
        "text": "xxx",
        "tags": {
          "audience": {
            "1": {
              "name": "xxx",
              "title": "xxx",
              "id": "xxx"
            }
          },
          "styleHint": {
            "1": {
              "name": "xxx",
              "title": "xxx",
              "id": "xxx"
            }
          }
        }
      },
      "title": "xxx",
      "text": "xxx",
      "tags": {
        "audience": {
          "1": {
            "name": "xxx",
            "title": "xxx",
            "id": "xxx"
          },
          "2": {
            "name": "xxx",
            "title": "xxx",
            "id": "xxx"
          }
        },
        "styleHint": {
          "1": {
            "name": "xxx",
            "title": "xxx",
            "id": "xxx"
          }
        }
      }
    },
    "2": {
      "title": "xxx",
      "text": "xxx",
      "tags": {
        "audience": {
          "1": {
            "name": "xxx",
            "title": "xxx",
            "id": "xxx"
          }
        },
        "styleHint": {
          "1": {
            "name": "xxx",
            "title": "xxx",
            "id": "xxx"
          }
        }
      },
      "anchor":"xxx"
  
    },
    "3": {
      "1": {
        "title": "xxx",
        "text": "xxx",
        "tags": {
          "audience": {
            "tag": {
              "name": "xxx",
              "title": "xxx",
              "id": "xxx"
            }
          },
          "styleHint": {
            "tag": {
              "name": "xxx",
              "title": "xxx",
              "id": "xxx"
            }
          }
        }
      },
      "title": "xxx",
      "text": "xxx",
      "tags": {
        "audience": {
          "1": {
            "name": "xxx",
            "title": "xxx",
            "id": "xxxx"
          }
        },
        "styleHint": {
          "1": {
            "name": "xx",
            "title": "xxx",
            "id": "xxxx"
          }
        }
      }
    }  
  }
  </code></pre>