X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=af47ecd957a508a0e094bea231f951a223569986;hb=9ee70f4c22c4990e7fe62a5238caa6b4e71f6a0f;hp=342e54666d308ece331283e601113a953de66e8f;hpb=f1fef5aeb2f4aad16d5c66e7ed4b58def0a26464;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 342e546..af47ecd 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,9 +1,12 @@ /* - * $Id: zoomsh.c,v 1.25 2004-01-12 12:10:44 adam Exp $ + * Copyright (c) 2002-2004, Index Data. + * See the file LICENSE for details. * - * ZOOM-C Shell + * $Id: zoomsh.c,v 1.27 2004-02-23 09:26:11 adam Exp $ */ +/* ZOOM-C Shell */ + #include #include #include @@ -365,6 +368,25 @@ static void cmd_scan (ZOOM_connection *c, ZOOM_resultset *r, } } +static void cmd_sort (ZOOM_connection *c, ZOOM_resultset *r, + ZOOM_options options, + const char **args) +{ + const char *sort_spec = *args; + int i; + + while (*sort_spec == ' ') + sort_spec++; + + for (i = 0; i