You are viewing a single comment's thread. Return to all comments →
C# best solution 9/9
public static List<string> bigSorting(List<string> unsorted) { unsorted.Sort((a,b)=>{ if(a.Length!=b.Length) return a.Length-b.Length; int strLen = a.Length; for(int v = 0; v < strLen; v++){ if( a[v] == b[v] ) continue; if( a[v] > b[v] ) return 1; return -1; } return 0; }); return unsorted; }
Big Sorting
You are viewing a single comment's thread. Return to all comments →
C# best solution 9/9