Thursday, December 30, 2010

Re: Add User/Group in Descending Order by Time(Last Add)

Hi,

From the data you posted, it seems that they are properly inserting in table as the IDs are incrementing. If you are displaying that data anywhere and you need to sort/order them in a particular way then use 'order' parameter while finding the records.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Fri, Dec 31, 2010 at 9:31 AM, John Maxim <googol6@gmail.com> wrote:
Hi
As I go through this tutorial:
http://book.cakephp.org/view/1547/Acts-As-a-Requester

When we add Group/User, after deleting some, the new data doesn't line
up in descending order e.g. User:

Id  Name
-------------
2. Jennifer<--- 2nd user is added
1. Jason   <--- 1st user is added
3. Mark    <--- 3rd user is added

~~

Can someone point this logical issue? like how to fix it so it goes in
descending order by time. (the oldest at the top....)


regards,
Maxim





Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: