From a25b89e9d30e6de573f20d5b591068d49d639a5d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 10 Aug 2001 12:50:40 +0000 Subject: [PATCH 1/1] Fixed bug where sort flags a and d was reversed. --- zutil/sortspec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 1.7.10.4