[XLS-668] Ability to retrieve available value requirements from view definition

GetViewPortfolioRequirements and GetViewPrimitiveRequirements functions.
Utility methods for sorting Value instances
Reviewed-by: Jim Moores