Possible to order by either ContentPickerField selecteditem or TaxonomyField term in Projector module?

Topics: Core
Nov 23, 2014 at 1:25 PM
I'm trying to figure out if it's possible to do what's stated above using a custom implementation for ISortCriterionProvider.

I have ContentTypes for: Product, ProductCategory and ProductCategoryTerm (in a "Product Category Taxonomy"). A Product contains a ContentPickerField for ProductCategory as well as a TaxonomyField for "Product Category Taxonomy" (terms). Both category types share the same purpose so I can choose which one is used for sorting.

Is this kind of sorting possible? Or should I approach this differently in an alternate view for a projection or in a (custom?) part driver where I manually sort the result?

Any guidance would be appreciated.