Sun end losing streak with 79-64 win over Mercury