C# Programming
09-04-2009, 02:26 PM
Hello. I got a code here in codeproject.com about radix sorting but it only sorts int based data. I want to use it to sort a string based data. My first try is I got first the ASCII codes of each characters in the strings then passed it in the radix sort code but what it gives me is totally different.
This is the link of the code that I got:
click here (http://www.codeproject.com/KB/recipes/RadixSort.aspx)
Here is the output after getting the ASCII codes and pass it to the radix sort:
SHOW DATABASE: SORTING BY LAST NAME
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
97
97
97
110
110
111
111
111
114
115
115
115
117
122
122
What should I do for it to be able to sort string?
modified on Friday, September 4, 2009 6:02 AM
This is the link of the code that I got:
click here (http://www.codeproject.com/KB/recipes/RadixSort.aspx)
Here is the output after getting the ASCII codes and pass it to the radix sort:
SHOW DATABASE: SORTING BY LAST NAME
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
97
97
97
110
110
111
111
111
114
115
115
115
117
122
122
What should I do for it to be able to sort string?
modified on Friday, September 4, 2009 6:02 AM