a)
I’ve got a List<Item>. Class Item has a string _name variable. I need to sort that list alphabetically according to _name.
b)
I’d love to know how to do the same thing with int variables of Item class - sort the list according to them in increasing order.
I’m using C#. If anyone could write a little example for me to better understand this, I’d be very grateful, english is not my first language and reading documentation doesn’t always work for me.