Skip to content

Glossary: C# Basics

Sort / Reverse

Also written: Sort, Reverse, Array.Sort

`Sort()` puts a list in order, smallest or alphabetically first, and `Reverse()` flips it. For an array, use `Array.Sort(a)`. Both change the collection itself.

Where the book teaches it

Related terms

ListArrayWhere / Select / OrderBy