I have class StatusesInvestmentRow (from dataSource) where one of the field is ModifiedDate
Investment table:
Id int PK;
ModifiedDate datetime;
How can I sort this arrayby this date?
I found example with IComparable but StatusesInvestmentRow has DataRow type so it is not good way I think.
I have this and I can't change this:
statInw = new GetAllInvestmentStatuses();
I want add something like:
var newestStatusInvestment = statInv.Sort(comparerByDate)[0];