listdir is not gauranteed to be sorted.