List<T> is the everyday resizable collection: var orders = new List<string>(); or, with a collection expression, List<string> orders = ["rye", "spelt"];. Add appends, Insert(0, x) puts at the front, Remove(x) removes the first match and returns whether it found one, RemoveAt(i) removes by position, Contains and IndexOf search, and Count is the number of items.
Sort() sorts in place, changing the list for everyone who holds it. To return a sorted version without touching the caller's list, copy first: new List<int>(amounts) or amounts.ToList(), then sort the copy.
Removing items inside a foreach over the same list throws InvalidOperationException ("Collection was modified"). Use RemoveAll(item => condition), or loop backwards with for and RemoveAt.
Remove by value, remove by condition, and sort a copy.