用途:指定需要排序的字段规则。
依赖类:\x\redis\UML
方法名:order()
参数:
string|array $order
返回值:this
使用示例:
$User = new \app\uml\User();
// 使用场景:字符串
$User->where('status', 1)->order('id DESC, title ASC');
// 使用场景:数组
$User->where('status', 1)->order(['id', 'DESC'])->order(['id', 'ASC']);