activerecord-hackery/ransack — pull request #328 by grokse (2014-01-06 18:22:58+00:00)
Title: 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"
}
]
```