The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

  Bio::DOOP::Util::Sort - sort an array of arrays.

VERSION

  Version 0.2

SYNOPSIS

  @result = $mofext->get_results;
  $sorting = Bio::DOOP::Util::Sort->new($db,\results);
  @sorted_result = $sorting->sort_by_column(1,"asc"); 

DESCRIPTION

  This class can sort any type of array of arrays. It can be used to sort the
  mofext or fuzznuc results, but can sort other data.

AUTHORS

  Tibor Nagy, Godollo, Hungary and Endre Sebestyen, Martonvasar, Hungary

METHODS

new

  $mofext_sort = Bio::DOOP::Util::Sort->new($db,\@mofext_result);

  Create a Sort class.
  Arguments: Bio::DOOP::DBSQL, array of array (practically it is a table)

sort_by_column

  @ret = $mofext_sort->sort_by_column(0,"asc");

  Sort a given array by column. (Warning, the first column is zero!)
  Return type: sorted array of arrays