Added sorting operations factory