CArrayDataProvider -> two bugs


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:


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:

New ticked already placed :slight_smile:

GitHub issue link: