#3 Columns sorting does not work for unkeyd rows

v0.11
closed-fixed
5
2005-01-22
2005-01-19
No

When reporting columns sorting does not work for
unkeyed/unmatched rows.
The in order to fix this function
Collection::order_columns has to be changed.

sub order_columns
{
my $self = shift;
my $cols = shift;

my $idx_hash = $self->{ 'col_idxs' };
my $columns = $self->{ 'columns' };

my @col_idxs = @$idx_hash{ @$cols }; # Indexes of
all columns given in
# $cols
! @col_idxs = sort { $a <=> $b } @col_idxs;
my @ord_cols = @$columns[ @col_idxs ];
# Columns from cols
sorted by the
# order of appearance in
a table

return \@ord_cols;
}

Discussion

  • Piotr Kaluski

    Piotr Kaluski - 2005-01-22
    • milestone: --> v0.11
    • status: open --> closed-fixed
     
  • Piotr Kaluski

    Piotr Kaluski - 2005-01-22

    Logged In: YES
    user_id=1074699

    Fix applied. Problem solved

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks