Note: When a collection is sorted, duplicate values are ignored. For example a collection created with the following
index/value pairs will not contain the values for indices 2 and 3 since the values A and B are duplicated.
0,A
1,B
2,A
3,B