projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
109b640
)
Fixed bug where sort flags a and d was reversed.
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 10 Aug 2001 12:50:40 +0000
(12:50 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 10 Aug 2001 12:50:40 +0000
(12:50 +0000)
zutil/sortspec.c
patch
|
blob
|
history
diff --git
a/zutil/sortspec.c
b/zutil/sortspec.c
index
c421fcb
..
caf5603
100644
(file)
--- a/
zutil/sortspec.c
+++ b/
zutil/sortspec.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2001, Index Data.
* See the file LICENSE for details.
*
* 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 <stdio.h>
*/
#include <stdio.h>
@@
-95,13
+95,13
@@
Z_SortKeySpecList *yaz_sort_spec (ODR out, const char *arg)
{
switch (sort_flags[i])
{
{
switch (sort_flags[i])
{
- case 'a':
- case 'A':
+ case 'd':
+ case 'D':
case '>':
*sks->sortRelation = Z_SortRelation_descending;
break;
case '>':
*sks->sortRelation = Z_SortRelation_descending;
break;
- case 'd':
- case 'D':
+ case 'a':
+ case 'A':
case '<':
*sks->sortRelation = Z_SortRelation_ascending;
break;
case '<':
*sks->sortRelation = Z_SortRelation_ascending;
break;