IComprable interface.
All of the primitive data types in .NET - String, Integer, Double, etc. - implement
IComparable and therefore arrays of these types can be sorted using
Array.Sort(ArrayName).
Unsorted List of Random Numbers
| 80 |
| 55 |
| 33 |
| 89 |
| 55 |
| 80 |
| 44 |
| 22 |
| 66 |
| 10 |
| 46 |
Sorted List of Random Numbers
| 10 |
| 22 |
| 33 |
| 44 |
| 46 |
| 55 |
| 55 |
| 66 |
| 80 |
| 80 |
| 89 |
Source Code
|