Changeset 4485


Ignore:
Timestamp:
05/24/11 10:52:56 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1726 - Ajuste para funcionar corretamente ordenacao na pesquisa. r4437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/expressoMail1_2/inc/class.imap_functions.inc.php

    r4478 r4485  
    35193519                                                                $elem = $this->get_msg_detail($new_search,$name_box,$mbox_stream);  
    35203520                                                                $elem['boxname'] = mb_convert_encoding( $name_box, "ISO_8859-1", "UTF7-IMAP" );  
    3521                                                                 $elem['uid'] = $new_search;  
     3521                                                                $elem['uid'] = $new_search; 
     3522                                                                /* compare dates in ordering */ 
     3523                                                                $elem['udatecomp'] = substr ($elem['udate'], -4) ."-". substr ($elem['udate'], 3, 2) ."-". substr ($elem['udate'], 0, 2); 
    35223524                                                                $retorno[] = $elem;  
    35233525                                                        } 
     
    35633565                                                        $elem = $this->get_msg_detail($new_search,$name_box,$mbox_stream);  
    35643566                                                        $elem['boxname'] = mb_convert_encoding( $name_box, "ISO_8859-1", "UTF7-IMAP" );  
    3565                                                         $elem['uid'] = $new_search;  
     3567                                                        $elem['uid'] = $new_search; 
     3568                                                        /* compare dates in ordering */ 
     3569                                                        $elem['udatecomp'] = substr ($elem['udate'], -4) ."-". substr ($elem['udate'], 3, 2) ."-". substr ($elem['udate'], 0, 2); 
    35663570                                                        $retorno[] = $elem; 
    35673571                                                } 
     
    35793583 
    35803584            /* Comparison functions, descendent is ascendent with parms inverted */ 
    3581             function SORTDATE($a, $b){ return ($a['udate'] < $b['udate']); } 
     3585            function SORTDATE($a, $b){ return ($a['udatecomp'] < $b['udatecomp']); } 
    35823586            function SORTDATE_REVERSE($b, $a) { return SORTDATE($a,$b); } 
    35833587 
Note: See TracChangeset for help on using the changeset viewer.