$products = Product()::find()->orderBy(['power' => SORT_ASC])->active()->all();
1000, 600, 750, 800, 900, 950
600, 750, 800, 900, 950, 1000
? $sort = new Sort([
'attributes' => [
'power' => [
'asc' => [new Expression('CAST(' . AttributeValue::tableName() . '.value as SIGNED) ASC')],
'desc' => [new Expression('CAST(' . AttributeValue::tableName() . '.value as SIGNED) DESC')],
'default' => SORT_DESC,
'label' => 'Мощность',
],
],
]);