Add support for sort operation