remove res.end from getbyid
sort friends #12