Assume the following URL, http://<Tower server name>/api/v1/groups/
http://<Tower server name>/api/v1/groups/
In order to sort the groups by name, access the following URL variation:
http://<Tower server name>/api/v1/groups/?order_by=name
You can order by any field in the object.