is it possible to create this with a comparator already and keep things in sorted order?