The SortedList provides the features of an ArrayList and Hashtable. Here we can
access the elements in a sorted list using a key like a Hashtable or by using an index like ArrayList.
It is called SortedList because the items in the collection are in sorted order by the key.
Example 4: SortedList collection adding and reading the elements in sort order.
The output will be: