Add setSelect() api function; fix signature of setSortMode()