addsort behavior