optimize help for order by

I have the following query that uses a filesort.. Its a bit condensed since I'm not putting in other fields I am grabbing.

It is a bit slow.. for people with a lot of friends.. it could take around 2-3 seconds.

SELECT title,entryid FROM members INNER JOIN friends ON members.id=userid1 INNER JOIN entries ON members.id=userid WHERE status=1 AND userid2=2 UNION SELECT title,entryid FROM members INNER JOIN friends ON members.id=userid2 INNER JOIN entries ON members.id=userid WHERE status=1 AND userid1=2 ORDER BY entryid DESC LIMIT 30;