The following is not doing what I had hoped for:
$this->hasMany("id", "OrderItems", "order_id", ['order' => 'online_reference DESC']);
Can someone please correct me?
You can use:
$sortedParts = $robot->getParts(['order' => 'online_reference DESC']);
There's no way to define it there where you're expecting