fixed sort caret bug