Index: fish/Makefile.in
===================================================================
--- fish.orig/Makefile.in	2016-12-11 04:29:54.928494715 +0200
+++ fish/Makefile.in	2016-12-11 04:41:06.968692827 +0200
@@ -369,7 +369,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; \
@@ -390,7 +390,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 \
