[#30] Sort file and directory lists before comparing