| Value | Meaning | 
|---|---|
| GIT_SORT_NONE0 | Sort the output with the same default method from git: reverse chronological order. This is the default sorting for new walkers.  | 
| GIT_SORT_TOPOLOGICAL1 << 0 | Sort the repository contents in topological order (no parents before all of its children are shown); this sorting mode can be combined with time sorting to produce git's --date-order`.  | 
| GIT_SORT_TIME1 << 1 | Sort the repository contents by commit time; this sorting mode can be combined with topological sorting.  | 
| GIT_SORT_REVERSE1 << 2 | Iterate through the repository contents in reverse order; this sorting mode can be combined with any of the above.  | 
Flags to specify the sorting which a revwalk should perform.