order by api controller