Sydney FC secured local bragging rights, and moved up to fourth in the A-League with a 3-1 defeat of rivals the Western Sydney Wanderers.