diff --git a/buildroot/bin/build_all_examples b/buildroot/bin/build_all_examples index 12ece299d7..9b221f7d43 100755 --- a/buildroot/bin/build_all_examples +++ b/buildroot/bin/build_all_examples @@ -158,7 +158,9 @@ shopt -s nullglob export PAUSE=1 # Get a list of all folders that contain a file matching "Configuration*.h" -find -s "$CBASE"/config/examples -type d -name 'Configuration.h' -o -name 'Configuration_adv.h' -print0 | while IFS= read -r -d $'\0' CONF; do +find "$CBASE"/config/examples -type d -name 'Configuration.h' -o -name 'Configuration_adv.h' -print0 \ + | LC_ALL=C sort -fz \ + | while IFS= read -r -d $'\0' CONF; do # Remove the file name and slash from the end of the path CONF=${CONF%/*}