As I know Radix sort is ideal for numbers but does radix sort applicable for sorting words also?:S,can you give me small ideas how to do that? :icon_confused:

its the same as sorting integers. If they are c style character arrays then call strcmp() instead of the < or > operators. If std::string then you can use the same operators. Otherwise there is no difference.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.