Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sort runs by start time.

  • Loading branch information...
commit 592c732d0d5a61f17cf5bac9e062b48d1d048816 1 parent 2f79f3e
@pjcj authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/Devel/Cover/DB.pm
View
8 lib/Devel/Cover/DB.pm
@@ -699,13 +699,9 @@ sub cover
condition => { left => 0, right => 1, false => 2 },
);
+ my @runs = sort { $self->{runs}{$b}{start} <=> $self->{runs}{$a}{start} }
+ keys %{$self->{runs}};
# use Data::Dumper; print STDERR "runs: ", Dumper $self->{runs};
- my @runs;
- {
- no warnings "numeric";
- # TODO - change sort order
- @runs = sort { $b <=> $a } keys %{$self->{runs}};
- }
for my $run (@runs)
{
Please sign in to comment.
Something went wrong with that request. Please try again.