I attached the Source Code of the my C# Console Application, Its half completed, I am remaining with the sorting part of below assignment, so let me help in how to sort array which contain DateTime data.
Expense Manager
Note : Use the collections (whi)
Menu
1. Add Income
2. Add Expense
3. Account Summary
Add Income
Take following As Input
1. Predefined Category Selection :
2. Title
3. Amount
4. Date
Add Expense
Take following As Input
1. Predefined Category Selection
2. Title
3. Amount
4. Date
Account Summary
show output : Category | Title | Amount | Date
1. Expense
1. Sort by date
2. Sort by name
3. Group by category
2. Income
1. Sort by date
2. Sort by name
3. Group by category
3. Total
show output
Total Income :
Total Expense :
I want help in above red Marked part of the assignment. that is sorting part, I used arrary, so I have to sort array, I found help for sort the list of DateTime, but Can I convert array to List and sort, please help me regarding Sorting part, attached the Source Code, Hope by that code will get proper exact reply.