Let's say I have a custom object of Foo
Is there anyway I can sort through a list of these objects, like
list<of foo>.sort()
and also be able to sort this list with a passable parameter. which will influence the sort?
list<of foo>.sort(pValue)
I'm guessing I'll need to define two separate sorts, but I am not sure.
EDIT: using built-in list. How objects are sorted depends on whether or not a parameter is passed. I could use a global variable and use that for sorting, but that makes bad bac code :p