It's not clear to me what you're trying to sort. Is it each line in a file? If yes, then you need to put each line into a separate array element. The way you're doing it now, the entire file content is a single element. If you want to sort a single line by characters, you have to do the same thing - put each character in it's own array element. If you would attach a sample text file with more details, it would help a lot.
- Re: whats the problem in the coding Dennis Knutson
