Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | function handle($result, $table) |
||
23 | { |
||
24 | $orderby = $this->ctrl->orderby; |
||
25 | if (! $orderby) { |
||
26 | $result->orderby($table.'.'.$this->ctrl->primary_key, 'desc'); |
||
27 | return; |
||
28 | } |
||
29 | if (is_string($orderby)) { |
||
30 | $orderby = $this->normalizeOrderBy($orderby); |
||
31 | } |
||
32 | |||
33 | $this->orderRows($result, $table, $orderby); |
||
34 | } |
||
65 | } |