repair files sorting