X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/cdab9f5d03b9c1d529155cf3b95d227d473bfb6d..02752d70d3760e6761ae40f7a3b83181e9cd782c:/SL/Controller/RecordLinks.pm diff --git a/SL/Controller/RecordLinks.pm b/SL/Controller/RecordLinks.pm index 03d7b81c7..b71467752 100644 --- a/SL/Controller/RecordLinks.pm +++ b/SL/Controller/RecordLinks.pm @@ -134,7 +134,8 @@ sub action_ajax_add_list { my @with_objects = ($vc); push @with_objects, $project if $manager->can($project_id); - my $objects = $manager->get_all_sorted(where => \@where, with_objects => \@with_objects); + # show the newest records first (should be better for 80% of the cases TODO sortable click + my $objects = $manager->get_all_sorted(where => \@where, with_objects => \@with_objects, sort_by => 'itime', sort_dir => 'ASC'); my $output = $self->render( 'record_links/add_list', { output => 0 },