Add Sorting with ordering and inserting without duplication