Stable sort?

  • Thread starter Thread starter cody
  • Start date Start date
C

cody

I need a sort method for stable sorting, that is, if two values have the
same value they won't be swapped. Will there be such a thing in whidbey?
 
Array.Sort is one function available in .NET for sorting. Unfortunately its
unstable sort. There is no direct class for stable sort algorithm

You can try implementing MergeSort algorithm(stable sort) converting c++
code to c#.
 
If you call the sort method twice each time it seems to be stable


Shakir Hussain said:
Array.Sort is one function available in .NET for sorting. Unfortunately its
unstable sort. There is no direct class for stable sort algorithm

You can try implementing MergeSort algorithm(stable sort) converting c++
code to c#.

--
Shak
(Houston)


cody said:
I need a sort method for stable sorting, that is, if two values have the
same value they won't be swapped. Will there be such a thing in whidbey?

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
 
Back
Top