in reply to Sorting path like strings

Assuming you don't have too many subdirs at any level, does this

perl -le 'print for map { join"/",map ord,split"",$_} sort map {chomp;join"",map chr,@x=split"/",$_}<>'

get the right order?