Remove reassigning sorted.  Push returns array.length
refactor Sort