Changeset 806

Show
Ignore:
Timestamp:
07/07/08 20:52:47 (5 months ago)
Author:
mpaschal
Message:

Always specify a sort order, so we don't sort the paginated JSON responses by ID instead of time

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/LinkedEntryCustomFields/lib/RightFieldsConvert/App.pm

    r804 r806  
    5555sub list_entry_mini { 
    5656    my $app = shift; 
    57     my (%terms, %args); 
    5857 
    5958    my $blog_id = $app->param('blog_id') 
    6059        or return $app->errtrans('No blog_id'); 
    61     $terms{blog_id} = $blog_id; 
     60 
     61    my %terms = ( blog_id => $blog_id ); 
     62    my %args = ( 
     63        sort      => 'authored_on', 
     64        direction => 'descend', 
     65    ); 
    6266 
    6367    if (my $cats = $app->param('cat_ids')) {