Sorting documents?

Have you read this help page on ordering results from the API?