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 a5ea93a..8675ee7 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));