moved Array.sort to Array.prototype/sort