It uses a comparator based on the ObligorCode of each components as opposed to natural ordering of weight and name.
Note that ideally we would use a Map keyed on RED code with values of the components, sorted by the values. However, standard maps are sorted by kets so would not be usable. Instead this class maintains a Map to ensure each RED code only appears once and a sorted set of the components.
|
|