RTF-614 fix sort