fixed sorting in games