Horje
c# 2-dimensional array sort Code Example
c# 2-dimensional array sort
static void Main()
{  // could just as easily be string...
    int[][] data = new int[][] { 
        new int[] {1,2,3}, 
        new int[] {2,3,4}, 
        new int[] {2,4,1} 
    }; 
    Sort<int>(data, 2); 
} 
private static void Sort<T>(T[][] data, int col) 
{ 
    Comparer<T> comparer = Comparer<T>.Default;
    Array.Sort<T[]>(data, (x,y) => comparer.Compare(x[col],y[col])); 
} 




Csharp

Related
Error: EACCES: permission denied, access '/usr/local/lib/node_modules' Code Example Error: EACCES: permission denied, access '/usr/local/lib/node_modules' Code Example
How to copy a file in C# Code Example How to copy a file in C# Code Example
.net core partial view with model Code Example .net core partial view with model Code Example
how refresh just one table in laravel by terminal Code Example how refresh just one table in laravel by terminal Code Example
asp.net core 3.1: cast jObject to dictionary<string,string> Code Example asp.net core 3.1: cast jObject to dictionary<string,string> Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12