-/* Sort direction. */
-enum sort_direction
- {
- SRT_ASCEND, /* A, B, C, ..., X, Y, Z. */
- SRT_DESCEND /* Z, Y, X, ..., C, B, A. */
- };
+ - Create a casewriter with sort_create_writer(), specifying the sort
+ criteria.
+ - Write all of the cases to be sorted to the casewriter, e.g. with
+ casewriter_write().
+ - Obtain the sorted results with casewriter_make_reader().