I have a mySql table called Country with the following fields.
country_id int(10)
short_description varchar(50)
abbreviation char(2)
state_flag bit(1)
province_flag bit(1)
The country class has the following LoadAll method
/**
* Load all Companies
* @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
* @return Company[]
*/
public static function LoadAll($objOptionalClauses = null) {
// Call Company::QueryArray to perform the LoadAll query
try {
return Company::QueryArray(QQ::All(), $objOptionalClauses);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
I would like to be able to sort the countries by the short_description field. But I don't understand the syntax and variables enough to do that yet.