Sort return results

Is there a way to sort return results on the api by field and order ? Have a requirement to be able to sort by Name and dateCreated