Add method for getting operations sorted