fixed sorting issue. Also added sorteing on total wins