Recursively sort nested arrays and hashes in json data structures.