]> git.tue.mpg.de Git - paraslash.git/commitdiff
com_lsblob(): Fix sorting order.
authorAndre Noll <maan@systemlinux.org>
Sat, 24 Nov 2007 12:01:45 +0000 (13:01 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 24 Nov 2007 12:01:45 +0000 (13:01 +0100)
blob.c

diff --git a/blob.c b/blob.c
index a5ea93aa9ffbb29fe6171bcf7dc28649ec081e3f..8675ee73330fb1f87a1f4ef0a2780b445a2a7b5b 100644 (file)
--- a/blob.c
+++ b/blob.c
@@ -100,9 +100,9 @@ static int com_lsblob_callback(struct osl_table *table,
        if (lbad.flags & BLOB_LS_FLAG_REVERSE)
                pmd.pm_flags |= PM_REVERSE_LOOP;
        if (!(lbad.flags & BLOB_LS_FLAG_SORT_BY_ID))
-               pmd.loop_col_num = BLOBCOL_ID;
-       else
                pmd.loop_col_num = BLOBCOL_NAME;
+       else
+               pmd.loop_col_num = BLOBCOL_ID;
        ret = for_each_matching_row(&pmd);
        if (ret < 0)
                para_printf(&lbad.pb, "%s\n", PARA_STRERROR(-ret));