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"