run dist.sh to update ./*.js
Fix the other instance of Array.sort being used improperly.

I missed this last time.