Added cleaning of temp folder on build
Split sorter into seperate directive