sort files from statistics