0
I have two lists with format TimeSpan
and another with a format of String
. I need to organize these two lists for increasing and decreasing.
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)
};
Search for Split String in Google (to split the string into string array, separating by ":"(colon)), then transform the 3 string and a single integer value (value = time3600 + minute60 + seconds), and sort it (look for the Quicksort algorithm)
– Sveen