wxStyledTextCtrl: how to set caret at begining of a selection?

Hi there,

I was trying to select text backwards in a StyledTextCtrl, i.e, want the
caret to be in the front, not at the end of selection, however
unsucessful.

My code like this:
set_selection_end(11)
set_selection_start(5)

Any suggestions? thanks in advance.

Zhimin