Filter and/or sorting AdvancedManyToManyRelation

Is it possible to programmatically order (sort) an Object field of type AdvancedManyToManyRelation on one of the columns?

I have an Object with some related assets in one field and I would like to have them sorted on a column value where there is some more information about the asset.

Filtering would be nice too, but sorting is more important now.