DOCS-1898 sort requires slice as well as each