Sort file
Delete all non-used files and wrote the sort-logic
deleted files