Sort Working Files locale-aware

For #8955.
Tested with German and Swedish locale.
I wonder if we should make this a function in LocalizationUtils? May be useful elsewhere.