I have two lists with the format of TimeSpan
and another with format of String
. I need to organize these two lists for ascending and descending.
List<string> horaString = new List<string>()
{
"01:04:00",
"04:04:00",
"02:02:10",
"03:05:00",
"10:07:00",
"22:20:00"
};
List<TimeSpan> horaTimespan = new List<TimeSpan>()
{
new TimeSpan(5, 30, 1),
new TimeSpan(2, 15, 5),
new TimeSpan(7, 32, 1),
new TimeSpan(8, 15, 5),
new TimeSpan(1, 23, 1),
new TimeSpan(3, 15, 5)
};