aboutsummaryrefslogtreecommitdiffstats
path: root/sway/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/list.c')
-rw-r--r--sway/list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/list.c b/sway/list.c
index 1be1e17c..45efc16f 100644
--- a/sway/list.c
+++ b/sway/list.c
@@ -49,3 +49,7 @@ void list_cat(list_t *list, list_t *source) {
49 list_add(list, source->items[i]); 49 list_add(list, source->items[i]);
50 } 50 }
51} 51}
52
53void list_sort(list_t *list, int compare(const void *left, const void *right)) {
54 qsort(list->items, list->length, sizeof(void *), compare);
55}