1package Search::Xapian::MultiValueSorter;
2
3=head1 NAME
4
5Search::Xapian::MultiValueSorter - allows sorting by a several values.
6
7=head1 DESCRIPTION
8
9Results are ordered by the first value.  In the event of a tie, the
10second is used.  If this is the same for both, the third is used, and
11so on.
12
13=head1 SYNOPSIS
14
15  use Search::Xapian;
16
17  my $db = new Search::Xapian::Database("/path/to/db");
18  my $enq = new Search::Xapian::Enquire($db);
19  my $sorter = new Search::Xapian::MultiValueSorter(1, 3, 5);
20  $enq->set_sort_by_key($sorter);
21
22=head1 METHODS
23
24=over 4
25
26=item new [<value>...]
27
28Construct and add the values listed.
29
30=item add <value> [<forward>]
31
32Add another value to sort on.  By default, values sort fowards, unless forward
33is specified and is false.
34
35=back
36
37=head1 REFERENCE
38
39  https://xapian.org/docs/sourcedoc/html/classXapian_1_1MultiValueSorter.html
40
41=cut
421;
43