Support ordering filter operations

I'm going to a special level of hell :(
Need to get the json support in for these, I assume by field works in some senseible way?