diff --git a/Makefile b/Makefile
index 4c64a38d01f0273059e29f6dac0448967b005b86..6c698181441c6f775b8fa2b995f50d3e181c080c 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@ merge_js:
 	JS_DIST_BUNDLE=$${JS_DIST_BUNDLE} AUTO_DISCOVER_MODULES=$$AUTO_DISCOVER_MODULES misc/merge_js.sh $${MODULE_DEPENDENCIES[*]}
 
 EXCLUDE_EXPR = %~ %.backup
-BUILDFILELIST = $(filter-out $(EXCLUDE_EXPR),$(wildcard build.properties.d/*))
+BUILDFILELIST = $(sort $(filter-out $(EXCLUDE_EXPR),$(wildcard build.properties.d/*)))
 build_properties:
 	@set -a -e ; \
 	pushd build.properties.files ; \