get friends function order by frid