Add Array.stableSort from mootools forge.

Change calls to Array.sort to use new Array.stableSort. 
Fixes sorting problems on Chrome
Fix for #2474