Make Array#sort and Array#sort! compliant