From: Adam Dickmeiss Date: Fri, 10 Aug 2001 12:50:40 +0000 (+0000) Subject: Fixed bug where sort flags a and d was reversed. X-Git-Tag: YAZ.1.8~58 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=a25b89e9d30e6de573f20d5b591068d49d639a5d;p=yaz-moved-to-github.git Fixed bug where sort flags a and d was reversed. --- diff --git a/zutil/sortspec.c b/zutil/sortspec.c index c421fcb..caf5603 100644 --- a/zutil/sortspec.c +++ b/zutil/sortspec.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2001, Index Data. * See the file LICENSE for details. * - * $Id: sortspec.c,v 1.1 2001-08-08 19:35:06 adam Exp $ + * $Id: sortspec.c,v 1.2 2001-08-10 12:50:40 adam Exp $ */ #include @@ -95,13 +95,13 @@ Z_SortKeySpecList *yaz_sort_spec (ODR out, const char *arg) { switch (sort_flags[i]) { - case 'a': - case 'A': + case 'd': + case 'D': case '>': *sks->sortRelation = Z_SortRelation_descending; break; - case 'd': - case 'D': + case 'a': + case 'A': case '<': *sks->sortRelation = Z_SortRelation_ascending; break;