Added sorting support in search and open index readonly