how to sort a two dimensional char array (only column wise) by selection sort in java
<p><strong>im very new in java i need the whole sorting algorithm....i can find ways to sort a 1 D array but a 2 D array gets very confusing.PLEASE help</strong></p>

<p>sorry i dont have a code yet, i dont know where to start from! <strong>(this is the code for a one D array:)  but i need one of 2 D (only column wise selection sort)</strong></p>

<pre><code>public static void sort(Comparable[] table) { 
int n = table.length; 
for (int fill=0; fill &lt; n-1; fill++) { 


int posMin = fill; 
for(int next=fill; next &lt; n; next++) { 
if(table[next].compareTo(table[posMin] &lt; 0) {
posMin = next; 

} 
} 
//Exchange table[fill] and table[posMin] 
Comparable temp = table[fill]; 
table[fill] = table[posMin]; 
table[posMin] = temp; 


} 
</code></pre>
