How to construct an ordered list out of 2 Object Models


#1

I’m a newbie to Realm ( it’s been great and intuitive to work with so far!)but I am now faced with a problem which I think I need some advice/help with. I posted my question on Stack overflow a few days ago, but haven’t gotten an answer so I was hoping I’d get some guidance here:

In a nutshell. I have 2 object models with a one to many relationship. I want to be able to created an ordered list with all the items in both models. I also have a requirement to sort and filter this combined list by similar fields like Name, Date, etc. I found a possibly solution ( link in stack overflow question) but it seems clunky. Want to make sure there isn’t a better way, which I haven’t thought about yet.

Thanks!