hi alayn,
great thanks for your help 

attractive eyes wrote:
> 
> hi all,
>          I am using the function given below to sort data and the
> direction of sorting is ascending. now I want to sort data in descending
> order, but I am not getting idea about it and it is mandatory for me to
> use the object of "Zend_Db_Select()" for sorting. please help me for
> sorting in desecding.
> 
> 
>  public function sortGadget($order)
>     {
>       
>         $db = Zend_Db_Table::getDefaultAdapter();
>         $selgadget = new Zend_Db_Select($db);
>         $selgadget->from('gadget')
>                   ->order($order);
>      
> 
>         return $selgadget; 
>     }
> 
> Regards
> Rizwan
> 

-- 
View this message in context: 
http://www.nabble.com/descending-sorting-using-object-of-%22Zen_Db_Select%28%29%22-tp25780205p25783956.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to