Sorting similarity files