Hi frnz ,

i need a C# code for to sorting text file , considering each row as one record and sort it according to that.

e.g INPUT File

my name is d
my name is h
i am a
how are you
what is your name

OUTPUT File

how are you
i am a
my name is d
my name is h
what is your name

thanks in advance,