xapian-bridge C port

endlessm/eos-sdk#2463
Original code called this `sort_by`. (I'm not sure if these name changes matter, but I suspect they do because these will get passed in as parameters in the GET request?)