I have class grades that I need to check if a specific grade is pass or fail. This is the list of grades in order:
- A
- A-
- B+
- B
- B-
If B is the pass mark, and The student has B+, using the normal ordering, if I check if the studentGrade > passMark, then its going to say it is failed because the system orders the strings as follows:
- A
- A-
- B
- B+
- B-
How do I setup a custom comparer for ordering a list as the first list in c#?