I am using https://github.com/rinvex/laravel-attributes to add EAV pattern to models. I can\'t figure out a proper way to resolve the sort query based on an attribute name.