fixed where js compared lexically rather than numerically