sort actions by time ascending save_change
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 4 Jun 2010 21:34:59 +0000 (23:34 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 4 Jun 2010 21:34:59 +0000 (23:34 +0200)
since we apply it in same order, this makes sense

lib/MojoFacets/Actions.pm

index 3e3f278..0143ea9 100644 (file)
@@ -61,7 +61,7 @@ sub edits {
        my $edits;
        my $stats;
        my $glob = $self->_edit_path . '/*';
-       foreach my $t ( sort { $b cmp $a } glob $glob ) {
+       foreach my $t ( sort { $a cmp $b } glob $glob ) {
                my $e = retrieve($t);
                if ( $items ) {
                        my ($pk,$id) = %{ $e->{unique} };