update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 deletions
|
|
@ -20,8 +20,8 @@ struct {
|
|||
|
||||
int CmprRows( const void *aa, const void *bb)
|
||||
{
|
||||
String *rA = *(String **)aa;
|
||||
String *rB = *(String **)bb;
|
||||
String *rA = *(String *const *)aa;
|
||||
String *rB = *(String *const *)bb;
|
||||
int sortCol = sortSpec.column;
|
||||
|
||||
String left = sortSpec.reversed ? rB[sortCol] : rA[sortCol];
|
||||
|
|
@ -66,7 +66,7 @@ int sortTable(Table tbl, const char* argSpec,... )
|
|||
}
|
||||
}
|
||||
va_end(vl);
|
||||
qsort( tbl->rows, tbl->n_rows, sizeof(String *), &CmprRows);
|
||||
qsort( tbl->rows, tbl->n_rows, sizeof(String *), CmprRows);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue