oops got boolean wrong

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4656 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-06-13 04:32:56 +00:00
parent 3d20eba7e6
commit 8c6941e9bb

View File

@ -93,11 +93,11 @@ sql_sort_order (char *p, sort_type_t sort_type, gboolean increasing)
case BY_STANDARD: case BY_STANDARD:
if (TRUE == increasing) if (TRUE == increasing)
{ {
p = stpcpy (p, "gncTransaction.date_posted ASC, gncTransaction.num ASC, "
"gncTransaction.date_entered ASC, gncTransaction.description");
} else {
p = stpcpy (p, "gncTransaction.date_posted DESC, gncTransaction.num DESC, " p = stpcpy (p, "gncTransaction.date_posted DESC, gncTransaction.num DESC, "
"gncTransaction.date_entered DESC, gncTransaction.description"); "gncTransaction.date_entered DESC, gncTransaction.description");
} else {
p = stpcpy (p, "gncTransaction.date_posted ASC, gncTransaction.num ASC, "
"gncTransaction.date_entered ASC, gncTransaction.description");
} }
break; break;
case BY_DATE: case BY_DATE:
@ -168,11 +168,11 @@ sql_sort_order (char *p, sort_type_t sort_type, gboolean increasing)
if (TRUE == increasing) if (TRUE == increasing)
{ {
p = stpcpy (p, " ASC "); p = stpcpy (p, " DESC ");
} }
else else
{ {
p = stpcpy (p, " DESC "); p = stpcpy (p, " ASC ");
} }
return p; return p;