The Sort Object is used to sort the results of a given search. It can be passed into the following methods: app.getFields(), app.getHits(), app.getObjects, and AxiomObject.getChildren().
Sort()
Description
Sort(info)
Constructor method for the Sort Object.
Parameters
- info (String or Object) - If a String, the field to sort ascending by. If an Object, the property is the field, the value is the order ('asc' or 'desc').
Examples
app.getObjects("Post", {}, {sort: new Sort({id: "asc"}))
app.getObjects("Post", {}, {sort: new Sort({"id"}))
Both of these calls are equivalent.
