Sort collection's items based on a multitype property

Hi! I’m looking for a way to sort my collection based on a property that contains both resource and literal type values. There’s a way?

Thank you!