Bugfix selection spans with shift was not work.
Because to switch the first span behind the second span is fail by lexical order.