Make min and max sort integers not strings.