Adding sorting to search results.

I've done this using the sort=name for ascending and sort=-name for descending approach.