git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73136 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -562,7 +562,9 @@ static int by_row(const void *ii, const void *jj)
{
const struct order *i = ii, *j = jj;
- return i->row - j->row;
+ if (i->row < j->row)
+ return -1;
+ return (i->row > j->row);
}