Allow for hashes with array sorts

Sorting with hashes works with hashes of hashes, but fails with array of hashes.  Not sure if this is a bugfix or new feature.

Works:
```json
    "s": {
      "0":
        {
            "name": "id",
            "dir": "asc"
        },
      "1":
        {
            "name": "name",
            "dir": "asc"
        }
    }
```

Dies:
```json
    "s": [
        {
            "name": "id",
            "dir": "asc"
        },        
        {
            "name": "name",
            "dir": "asc"
        }
    ]
```