undo change, add docs

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6643 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2002-01-24 01:56:33 +00:00
parent 88aac579bc
commit 101cbeaa0b

View File

@@ -87,6 +87,10 @@ sql_Query_destroy (sqlQuery *sq)
/* =========================================================== */
/* sorting order */
/* We use DESC for increasing and ASC for decreasing,
* since the MaxSplits parameter refers to the *last*
* splits in the sort order. The real sorting will be
* done by the Query C code. */
static char *
sql_sort_order (char *p, sort_type_t sort_type, gboolean increasing)
@@ -99,17 +103,17 @@ sql_sort_order (char *p, sort_type_t sort_type, gboolean increasing)
if (TRUE == increasing)
{
p = stpcpy (p,
"gncTransaction.date_posted ASC, "
"gncTransaction.num ASC, "
"gncTransaction.date_entered ASC, "
"gncTransaction.date_posted DESC, "
"gncTransaction.num DESC, "
"gncTransaction.date_entered DESC, "
"gncTransaction.description");
}
else
{
p = stpcpy (p,
"gncTransaction.date_posted DESC, "
"gncTransaction.num DESC, "
"gncTransaction.date_entered DESC, "
"gncTransaction.date_posted ASC, "
"gncTransaction.num ASC, "
"gncTransaction.date_entered ASC, "
"gncTransaction.description");
}
break;
@@ -181,11 +185,11 @@ sql_sort_order (char *p, sort_type_t sort_type, gboolean increasing)
if (TRUE == increasing)
{
p = stpcpy (p, " ASC ");
p = stpcpy (p, " DESC ");
}
else
{
p = stpcpy (p, " DESC ");
p = stpcpy (p, " ASC ");
}
return p;