remove old file, add sorting