Show
Ignore:
Timestamp:
06/04/08 01:21:49 (22 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/AuthorMonthly.pm

    r2399 r2500  
    130130                    "extract(month from authored_on)" 
    131131                ], 
    132                 'sort' => "extract(year from authored_on) $order, 
    133                          extract(month from authored_on) $order" 
     132                'sort' => [ 
     133                    { column => "extract(year from authored_on)", desc => $order }, 
     134                    { column => "extract(month from authored_on)", desc => $order } 
     135                ], 
    134136            } 
    135137        ) or return $ctx->error("Couldn't get monthly archive list");