Yii Framework Forum: CArrayDataProvider -> two bugs - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CArrayDataProvider -> two bugs Rate Topic: -----

#1 User is offline   Ziggi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 95
  • Joined: 14-August 12

Posted 04 September 2012 - 01:43 PM

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!
0

#2 User is offline   CeBe 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 519
  • Joined: 16-July 10
  • Location:Berlin. Germany

Posted 04 September 2012 - 01:52 PM

1) feel free to add a ticket
2) is already there: https://github.com/y.../yii/issues/990
0

#3 User is offline   Ziggi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 95
  • Joined: 14-August 12

Posted 04 September 2012 - 02:45 PM

View PostCeBe, on 04 September 2012 - 01:52 PM, said:

1) feel free to add a ticket


New ticked already placed :-)
0

#4 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 04 September 2012 - 04:45 PM

View PostZiggi, 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?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users