CI_DB_query_builder::order_by()

order_by($orderby[, $direction = ''[, $escape = NULL]])

Parameters:
  • $orderby (string) – Field to order by
  • $direction (string) – The order requested - ASC, DESC or random
  • $escape (bool) – Whether to escape values and identifiers
Returns:

CI_DB_query_builder instance (method chaining)

Return type:

CI_DB_query_builder

Adds an ORDER BY clause to a query.

doc_CodeIgniter
2016-10-15 16:31:17
Comments
Leave a Comment

Please login to continue.