clean files
add sort function