refactored orderers
Added sort command