mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix bug. increasing == ASC
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6640 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -98,11 +98,19 @@ sql_sort_order (char *p, sort_type_t sort_type, gboolean increasing)
|
||||
case BY_STANDARD:
|
||||
if (TRUE == increasing)
|
||||
{
|
||||
p = stpcpy (p, "gncTransaction.date_posted DESC, gncTransaction.num DESC, "
|
||||
"gncTransaction.date_entered DESC, gncTransaction.description");
|
||||
} else {
|
||||
p = stpcpy (p, "gncTransaction.date_posted ASC, gncTransaction.num ASC, "
|
||||
"gncTransaction.date_entered ASC, gncTransaction.description");
|
||||
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, "
|
||||
"gncTransaction.date_entered DESC, "
|
||||
"gncTransaction.description");
|
||||
}
|
||||
break;
|
||||
case BY_DATE:
|
||||
@@ -173,11 +181,11 @@ sql_sort_order (char *p, sort_type_t sort_type, gboolean increasing)
|
||||
|
||||
if (TRUE == increasing)
|
||||
{
|
||||
p = stpcpy (p, " DESC ");
|
||||
p = stpcpy (p, " ASC ");
|
||||
}
|
||||
else
|
||||
{
|
||||
p = stpcpy (p, " ASC ");
|
||||
p = stpcpy (p, " DESC ");
|
||||
}
|
||||
|
||||
return p;
|
||||
|
||||
Reference in New Issue
Block a user