JSONObject internal synchronization removed- externally sync if you need (done for performance)
Comparator updated to return int instead of boolean, more like standard Java Collections