using System.Collections.Generic;
public string SomeValue {get; set;}
public string Time {get; set;}
public int TimeAsInt {get; set;}
public static void Main()
public static void OrderByIntProperty()
var list = new List<Result>();
list.Add(new Result(){ SomeValue = "1", Time = "101' 20\"", TimeAsInt = 6080 });
list.Add(new Result(){ SomeValue = "1", Time = "15' 19\"", TimeAsInt = 919 });
var result = list.OrderBy(x => x.SomeValue).ThenBy(x => x.TimeAsInt);
Console.WriteLine("Correct Ordering");
Console.WriteLine(r.Time);
Console.WriteLine("--------------------------");
public static void OrderByStringProperty()
var list = new List<Result>();
list.Add(new Result(){ SomeValue = "1", Time = "101' 20\"" });
list.Add(new Result(){ SomeValue = "1", Time = "15' 19\"" });
var result = list.OrderBy(x => x.SomeValue).ThenBy(x => x.Time);
Console.WriteLine("Wrong Ordering");
Console.WriteLine(r.Time);
Console.WriteLine("--------------------------");