Index: fish/Makefile.in
===================================================================
--- fish.orig/Makefile.in	2017-07-16 13:14:47.552574999 +0200
+++ fish/Makefile.in	2017-07-16 13:14:47.552574999 +0200
@@ -388,7 +388,7 @@
 doc_src/commands.hdr:$(HELP_SRC) doc_src/commands.hdr.in |
 	@echo "  CAT AWK  $(em)$@$(sgr0)"
 	$v rm -f command_list.tmp command_list_toc.tmp $@
-	$v for i in $(sort $(HELP_SRC)); do \
+	$v for i in `printf "%s\n" $(HELP_SRC) | LC_ALL=C sort`; do \
 		echo "<hr>" >>command_list.tmp; \
 		cat $$i >>command_list.tmp; \
 		echo >>command_list.tmp; \
@@ -409,7 +409,7 @@
 # The first sed command captures the page name, followed by the description
 # The second sed command captures the command name \1 and the description \2, but only up to a dash
 # This is to reduce the size of the TOC in the command listing on the main page
-	$v for i in $(HDR_FILES:index.hdr=index.hdr.in); do\
+	$v for i in `echo $(HDR_FILES:index.hdr=index.hdr.in) | xargs -n1 | LC_ALL=C sort`; do\
 		NAME=`basename $$i .hdr`; \
 		NAME=`basename $$NAME .hdr.in`; \
 		$(SED) <$$i >>toc.tmp -n \
