using System;
using System.Linq;
using System.Collections.Generic;
public class Test
{
public static void Main()
{
var list = new List<string>() { "50:James", "23:Jessica", "70:Ricky", "70:Dodger", "50:Eric" };
var ordered = list.Select(s => new { Str = s, Split = s.Split(':') })
.OrderBy(x => int.Parse(x.Split[0]))
.ThenBy(x => x.Split[1])
.Select(x => x.Str)
.ToList();
foreach(string s in ordered)
Console.WriteLine(s);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKdXNpbmcgU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWM7CgpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CiAgICAgICAgdmFyIGxpc3QgPSBuZXcgTGlzdDxzdHJpbmc+KCkgeyAiNTA6SmFtZXMiLCAiMjM6SmVzc2ljYSIsICI3MDpSaWNreSIsICI3MDpEb2RnZXIiLCAiNTA6RXJpYyIgfTsKCQl2YXIgb3JkZXJlZCA9IGxpc3QuU2VsZWN0KHMgPT4gbmV3IHsgU3RyID0gcywgU3BsaXQgPSBzLlNwbGl0KCc6JykgfSkKICAgICAgICAgICAgLk9yZGVyQnkoeCA9PiBpbnQuUGFyc2UoeC5TcGxpdFswXSkpCiAgICAgICAgICAgIC5UaGVuQnkoeCA9PiB4LlNwbGl0WzFdKQogICAgICAgICAgICAuU2VsZWN0KHggPT4geC5TdHIpCiAgICAgICAgICAgIC5Ub0xpc3QoKTsKICAgICAgICBmb3JlYWNoKHN0cmluZyBzIGluIG9yZGVyZWQpCiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKHMpOwoJfQp9