I have a file with some characteristics in particular, but, in this file, in column 30, I have a number, not sequential, 5 digit, and I would like to arrange the lines of this file, based on this numeroação, in ascending order.
For example:
sample sample sample1 00094
sample sample sample2 00001
sample sample sample3 00032
sample sample sample4 00491
sample sample sample5 00002
sample sample sample6 00010
sample sample sample7 00007
The sequential number is the 00094, 00001...
And the output is:
sample sample sample2 00001
sample sample sample5 00002
sample sample sample7 00007
sample sample sample6 00010
sample sample sample3 00032
sample sample sample1 00094
sample sample sample4 00491
I developed a sitema extremely pig, where I play everything in a list, and make a bubble sort, then, I wonder if there is a more efficient way of doing this, perhaps using Linq, or even a different way.
Thanks for the help.