Click here to Skip to main content
16,005,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about class communication Pin
nc3b2-Aug-05 7:54
nc3b2-Aug-05 7:54 
GeneraliTunes and Podcasting Pin
Al_Pennyworth2-Aug-05 5:17
Al_Pennyworth2-Aug-05 5:17 
GeneralRe: iTunes and Podcasting Pin
Anonymous2-Aug-05 6:33
Anonymous2-Aug-05 6:33 
GeneralRe: iTunes and Podcasting Pin
Anonymous3-Aug-05 5:00
Anonymous3-Aug-05 5:00 
GeneralRemainder in / operation Pin
zaboboa2-Aug-05 5:11
zaboboa2-Aug-05 5:11 
GeneralRe: Remainder in / operation Pin
Guffa2-Aug-05 5:41
Guffa2-Aug-05 5:41 
GeneralAppend Text to Notepad programatically Pin
Alomgir Miah2-Aug-05 3:53
Alomgir Miah2-Aug-05 3:53 
GeneralSorting an array Pin
livez2-Aug-05 3:22
livez2-Aug-05 3:22 
Hello!

I have an two-dimensional string array with values looking like this:

0 1
----
1 b
0 c
1 x
2 v
1 f
0 k

and so on. now I want to sort this array on the first column, so it would look like this:

0 1
----
0 c
0 k
1 b
1 x
1 f
2 v

I suppose I will have to do some manual sorting since I cant seem to find a sorting method for the array control.The only solution Ive come up with so far is making another array, looping through the first array and adding the row if column[0] = current value, but this solution would force me to loop for every new value in the column, which isnt very efficient.

Can anyone help me come up with a better solution?

/regards Magnus


GeneralRe: Sorting an array Pin
J4amieC2-Aug-05 3:42
J4amieC2-Aug-05 3:42 
GeneralRe: Sorting an array Pin
Mohamad Al Husseiny2-Aug-05 3:44
Mohamad Al Husseiny2-Aug-05 3:44 
GeneralRe: Sorting an array Pin
livez2-Aug-05 3:49
livez2-Aug-05 3:49 
GeneralRe: Sorting an array Pin
Alomgir Miah2-Aug-05 3:59
Alomgir Miah2-Aug-05 3:59 
GeneralRe: Sorting an array Pin
Mohamad Al Husseiny2-Aug-05 4:08
Mohamad Al Husseiny2-Aug-05 4:08 
GeneralRe: Sorting an array Pin
livez2-Aug-05 4:23
livez2-Aug-05 4:23 
Generalplease help me ! Pin
song guo chun(chinese)2-Aug-05 2:59
song guo chun(chinese)2-Aug-05 2:59 
GeneralRe: please help me ! Pin
Mohamad Al Husseiny2-Aug-05 3:24
Mohamad Al Husseiny2-Aug-05 3:24 
GeneralRe: please help me ! Pin
song guo chun(chinese)3-Aug-05 4:18
song guo chun(chinese)3-Aug-05 4:18 
GeneralGoing to the parent using XMLTextReader Pin
Duncan Sample2-Aug-05 2:51
Duncan Sample2-Aug-05 2:51 
GeneralRe: Going to the parent using XMLTextReader Pin
Alomgir Miah2-Aug-05 3:09
Alomgir Miah2-Aug-05 3:09 
Generalabout Datagrid Template columns Pin
chandru_inbox2-Aug-05 2:03
chandru_inbox2-Aug-05 2:03 
GeneralRe: about Datagrid Template columns Pin
Alomgir Miah2-Aug-05 3:05
Alomgir Miah2-Aug-05 3:05 
GeneralZip and Unzip files or folders Pin
aparajita2-Aug-05 1:51
aparajita2-Aug-05 1:51 
GeneralRe: Zip and Unzip files or folders Pin
Christian Graus2-Aug-05 2:14
protectorChristian Graus2-Aug-05 2:14 
GeneralRe: Zip and Unzip files or folders Pin
S. Senthil Kumar2-Aug-05 2:55
S. Senthil Kumar2-Aug-05 2:55 
GeneralRe: Zip and Unzip files or folders Pin
Mohamad Al Husseiny2-Aug-05 3:16
Mohamad Al Husseiny2-Aug-05 3:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.