add (1) delete and (2) sorting