P
Philluminati
I have a LinkedList of network objects defined:
LinkedList<NetworkObject>
and I want to sort the contents against one of the properties. I'm not
looking for people to post page long algorithms on how to write a
sorting algorithm, I just want to know reuse as much as possible.
(It's a client app and I only to sort 200 or so records in a one time
operation so it doesn't matter if it takes 30 seconds to do)
Is there some Collection.Sort( myList ) function where I can just have
the sorting algorithm do the work and I just implement the comparer
function in the class? I don't care if it's quick sort or bubble sort.
I just want the simplest, least effort way of writing this code in
this language.
Can anyone help please?
Thanks
Phill
LinkedList<NetworkObject>
and I want to sort the contents against one of the properties. I'm not
looking for people to post page long algorithms on how to write a
sorting algorithm, I just want to know reuse as much as possible.
(It's a client app and I only to sort 200 or so records in a one time
operation so it doesn't matter if it takes 30 seconds to do)
Is there some Collection.Sort( myList ) function where I can just have
the sorting algorithm do the work and I just implement the comparer
function in the class? I don't care if it's quick sort or bubble sort.
I just want the simplest, least effort way of writing this code in
this language.
Can anyone help please?
Thanks
Phill