Query\QueryBuilder::order_by
Order the results by the selected field(s)
Signature
public function order_by(string
$field,
[string
$type = ""] )
Parameters
$field
—
string
$type
—
string
Returns
- Query_Builder
Defined by Interface
QueryBuilderInterface
Test Coverage
Information
- Coverage: 15/15 Lines (100%)
- Tests: 16
- Passed: 16 (100%)
Tests
- [ PASSED ] — MySQLQBTest::testMultiOrderBy
- [ PASSED ] — MySQLQBTest::testOrderBy
- [ PASSED ] — MySQLQBTest::testOrderByRandom
- [ PASSED ] — MySQLQBTest::testGroupBy
- [ PASSED ] — PgSQLQBTest::testMultiOrderBy
- [ PASSED ] — PgSQLQBTest::testOrderBy
- [ PASSED ] — PgSQLQBTest::testOrderByRandom
- [ PASSED ] — PgSQLQBTest::testGroupBy
- [ PASSED ] — SQLiteQBTest::testMultiOrderBy
- [ PASSED ] — SQLiteQBTest::testOrderBy
- [ PASSED ] — SQLiteQBTest::testOrderByRandom
- [ PASSED ] — SQLiteQBTest::testGroupBy
- [ PASSED ] — FirebirdQBTest::testMultiOrderBy
- [ PASSED ] — FirebirdQBTest::testOrderBy
- [ PASSED ] — FirebirdQBTest::testOrderByRandom
- [ PASSED ] — FirebirdQBTest::testGroupBy