Hi Paul, sorry for the late response.
Based on your raw value I suspect that you’re trying to fetch data from another post type that contains the data that you’re actually showing. Is that correct? You’ll have to do three queries before you do the actual get_the_title(). so I’m afraid it’s not that easy to write your logic for both filtering and sorting.
For sorting it is possible to do it the easy way and just load the Sorting model that just sorts on the column value, but since retrieving your value already requires 4 queries, this will really have an impact on your performance when you have a lot of posts to sort on. You could try it by returning the following model in your pro column
public function sorting(){
return new ACP\Sorting\Model\Value( $this );
}
About filtering. Did you already figure out how you could filter your posts by altering the WP_Query on the post? Please notice that you need to manipulate the query when you want to filter and I can’t help you with this part. You probably want to use the pre_get_posts hook and see if you’re able to filter your overview in a sandbox. If you found a way to do that, then you can try to move that logic to a so-called Filtering model for our plugin. I can help you with that, but I suspect that finding the right way to alter the query is already quite challenging.
You can find more information about altering the query on this WordPress documentation page.
https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts
If you really want to change the SQL, you could have a look at this hook
https://codex.wordpress.org/Plugin_API/Filter_Reference/posts_clauses
And of course, have a look at our Filtering models in /classes/Filtering/Models/