[sort]: depending on locale, whitespaces are treated differently.

echo -e "KEY_F 80\nKEY_F8 1\nKEY_F 84" | LC_COLLATE=en_GB.UTF-8 sort
vs.
echo -e "KEY_F 80\nKEY_F8 1\nKEY_F 84" | LC_COLLATE=C sort