Show
Ignore:
Timestamp:
06/04/08 01:21:49 (18 months ago)
Author:
fumiakiy
Message:

Modernized how sort argument is specified in group_by query. BugId:79977. The legacy way of specifying it is still allowed but discouraged.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/lib/MT/ArchiveType/CategoryDaily.pm

    r2399 r2500  
    127127                    "extract(day from authored_on)" 
    128128                ], 
    129                 sort => "extract(year from authored_on) $order, 
    130                               extract(month from authored_on) $order, 
    131                               extract(day from authored_on) $order", 
     129                sort => [ 
     130                    { column => "extract(year from authored_on)", desc => $order }, 
     131                    { column => "extract(month from authored_on)", desc => $order }, 
     132                    { column => "extract(day from authored_on)", desc => $order }, 
     133                ], 
    132134                'join' => 
    133135                  [ 'MT::Placement', 'entry_id', { category_id => $c->id } ]