Added a workaround for wrongly sorted selection from editor.