fix bug:localCompare undefined