Changeset 4437 for branches


Ignore:
Timestamp:
05/18/11 09:39:58 (13 years ago)
Author:
diegomoreno
Message:

Ticket #1891 - expressoMail1_2 - Ajuste para funcionar corretamente ordenacao na pesquisa.

File:
1 edited

Legend:

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

    r4431 r4437  
    35103510                                                                $elem['boxname'] = mb_convert_encoding( $name_box, "ISO_8859-1", "UTF7-IMAP" );  
    35113511                                                                $elem['uid'] = $new_search;  
     3512                                                                /* compare dates in ordering */ 
     3513                                                                $elem['udatecomp'] = substr ($elem['udate'], -4) ."-". substr ($elem['udate'], 3, 2) ."-". substr ($elem['udate'], 0, 2); 
    35123514                                                                $retorno[] = $elem;  
    35133515                                                        } 
     
    35533555                                                        $elem['boxname'] = mb_convert_encoding( $name_box, "ISO_8859-1", "UTF7-IMAP" );  
    35543556                                                        $elem['uid'] = $new_search;  
     3557                                                        /* compare dates in ordering */ 
     3558                                                        $elem['udatecomp'] = substr ($elem['udate'], -4) ."-". substr ($elem['udate'], 3, 2) ."-". substr ($elem['udate'], 0, 2); 
    35553559                                                        $retorno[] = $elem; 
    35563560                                                } 
     
    35683572 
    35693573            /* Comparison functions, descendent is ascendent with parms inverted */ 
    3570             function SORTDATE($a, $b){ return ($a['udate'] < $b['udate']); } 
     3574            function SORTDATE($a, $b){ return ($a['udatecomp'] < $b['udatecomp']); } 
    35713575            function SORTDATE_REVERSE($b, $a) { return SORTDATE($a,$b); } 
    35723576 
Note: See TracChangeset for help on using the changeset viewer.