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!
Page 1 of 1
CArrayDataProvider -> two bugs
#4
Posted 04 September 2012 - 04:45 PM
Ziggi, on 04 September 2012 - 02:45 PM, said:
New ticked already placed :-)
GitHub issue link: https://github.com/y...yii/issues/1333
Find more about me.... btw. Do you know your WAN IP?
Share this topic:
Page 1 of 1

Help











