Adding sort to filearray