Use function orderby_sql()