I have created a computed field, using ComputedFieldTrait. It is working fine, I am able to add the computed on the manage layout pages. I have implemented hook_views_data_alter() to tell Views about the computed field, and I am able to add the computed field to a view.
However, I need to do both a sort and a filter on the computed field.
My question: How do I structure my return value from hook_views_data_alter() so that views can use my computed field for sorting and filtering? Or is this even possible?