Fix IE sort bug that throws TypeError: Number expected