CArrayDataProvider -> two bugs

Hi,

There are two issues with CArrayDataProvider sorting:

  1. CArrayDataProvider does not recognize usual “SORT_ASC” and “SORT_DESC” constants provided with CSort object. Only ‘old style’ “TRUE” and “FALSE” arguments are recognized.

  2. CArrayDataProvider sorting algorythm what is PHP’s ‘array_multisort’ function is case sensitive what is inconsistent with MySQL sorting order. Rather nasty workaround is extending the class as described here:

http:||tech.ldg.me/category/lamp/php/yii

I consider both issues being bugs not features but I decided to consult here prior reporting it as actual bugs. Please advise!

  1. feel free to add a ticket

  2. is already there: https://github.com/yiisoft/yii/issues/990

New ticked already placed :slight_smile:

GitHub issue link: https://github.com/yiisoft/yii/issues/1333