completed sorting while adding