added sorting files to alpha version (emre)