aboutsummaryrefslogtreecommitdiff
path: root/bb.c
diff options
context:
space:
mode:
Diffstat (limited to 'bb.c')
-rw-r--r--bb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bb.c b/bb.c
index 8aaae9e..fac8a4c 100644
--- a/bb.c
+++ b/bb.c
@@ -337,6 +337,9 @@ const char* color_of(mode_t mode)
else return NORMAL_COLOR;
}
+/*
+ * Set the sorting method used by bb to display files.
+ */
void set_sort(bb_t *bb, const char *sort)
{
for (const char *s = sort; s[0] && s[1]; s += 2) {