Sorting in yii 1.1

Hello all,

I have question regarding yii 1.1 sort.

I have three tables ticket, repairLogs and part table .

Following relations have been defined in Ticket model.

‘repairLogs’ => array(self::HAS_MANY, ‘RepairLog’, ‘ticket_id’, ‘order’=>‘ts DESC’),

and in repairLogs Table

‘part’ => array(self::BELONGS_TO, ‘Part’, ‘part_id’),

Part table has a column ‘number’ and I want to sort the data based on “number”. Can anyone guide me how to do this since I am new to the yii 1.1 framework.