P
Peter Kirk
Hi
say I have a list of Person objects, which I want to sort. But I don't just
want to sort by "name" say, but by several fields in the Person object.
Maybe 1st priority by height, 2nd priority by weight, and 3rd priority by
age.
A Person object has many attributes though, and I want to be able to select
between all of the fields for sorting (with 1st, 2nd, 3rd priority).
What would be a good approach?
Thanks,
Peter
say I have a list of Person objects, which I want to sort. But I don't just
want to sort by "name" say, but by several fields in the Person object.
Maybe 1st priority by height, 2nd priority by weight, and 3rd priority by
age.
A Person object has many attributes though, and I want to be able to select
between all of the fields for sorting (with 1st, 2nd, 3rd priority).
What would be a good approach?
Thanks,
Peter