fix numeric sorting

Reworked change to be in a separate branch as requested. This is a fix for numeric sorting supporting spaces in the fragment file names.