treeSet fixes

sort client side correctly.
merge items in the ICS correctly, without a linear search!