Fix: If no compareFunc specified, sort compares values as strings