Add Ubuntu quantal
[ZOOM-Perl-moved-to-github.git] / lib / ZOOM.pm
index 8c97dae..6b2f8c9 100644 (file)
@@ -1,5 +1,3 @@
-# $Id: ZOOM.pm,v 1.50 2008-05-14 13:33:31 mike Exp $
-
 use strict;
 use warnings;
 use IO::File;
@@ -580,6 +578,14 @@ sub sortby {
        or ZOOM::_oops(ZOOM::Error::SORTBY, $sortby);
 }
 
+sub sortby2 {
+    my $this = shift();
+    my($strategy, $sortby) = @_;
+
+    Net::Z3950::ZOOM::query_sortby2($this->_query(), $strategy, $sortby) == 0
+       or ZOOM::_oops(ZOOM::Error::SORTBY, $sortby);
+}
+
 sub destroy {
     my $this = shift();