Initial commit of sort controller