Skip to content

Instantly share code, notes, and snippets.

@donma
Created February 21, 2022 06:41
var sampleStr = "10,11,12,13,014,15,21,22,23,24,25,111,112,113,0114,115";
var strs = sampleStr.Split(',');
strs = strs.OrderBy(x => int.Parse(x)).ThenBy(x => x).ToArray();
Console.WriteLine("大絕招,直接 Parse :" + string.Join(',', strs));
//大絕招,直接 Parse :10,11,12,13,14,15,21,22,23,24,25,111,112,113,114,115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment