المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Need Help: Converting int[] based Radix Sort to string[] based Radix Sort [modified]



C# Programming
09-04-2009, 12:24 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.

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 4:20 AM