Sort paths too not only file name (like the original sort did)