Inspiration

I wanted to practice my C# when sorting the list.

What it does

This solution is very simple. We create a List. We use the Add() method to add strings to our list. In this case we add names of bird species. We iterate over the list writing each string or bird species to the console.

Then we use the default version of the built-in Sort() method on the list. We iterate over the sorted list of birds and output the strings or species names to the console.

How we built it

Written in C# with Visual Studio Community 2019.

Challenges we ran into

I have not used a lot of non web code recently, so I needed to look up the individual types and methods to remind myself how they worked.

Accomplishments that we're proud of

I am happy that this succeeds in reordering our birds without complication.

What we learned

If you understand the fundamentals it is not difficult to work out the detail with some help from reference materials.

What's next for Write Code to Sort a List

I think the birds flew away. (While I would like to use more C# in the future, this specific project is not going to be expanded upon.)

Built With

Share this project:

Updates