From 46f549273349dff8b6085c2e52a3a69bd7ba46b2 Mon Sep 17 00:00:00 2001 From: Botspot Date: Wed, 13 Jan 2021 22:00:41 -0600 Subject: [PATCH] categoryedit - sort file alphabetically --- etc/categoryedit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/categoryedit b/etc/categoryedit index 7cdbbb1..81c849b 100755 --- a/etc/categoryedit +++ b/etc/categoryedit @@ -83,8 +83,8 @@ $category fi refresh done -#remove first and last characters from each line ---- and '(null)' messaged from yad -output="$(echo "$output" | sed 's/.$//; s/^.//' | sed "s+(null)++g")" +#remove first and last characters from each line ---- and '(null)' messaged from yad --- and sort it alphabetically +output="$(echo "$output" | sed 's/.$//; s/^.//' | sed "s+(null)++g" | sort)" echo "$output" > "${DIRECTORY}/data/categories/structure"