fixed bug in prepare_dataset: need to sort file list on some file systems