Sorted(Source<Ex1> a1) {
OperatorDescription.Builder builder1 = new OperatorDescription.Builder(CoGroup.class);
builder1.declare(CoGroupFlow.class, CoGroupFlowImpl.class, "sorted");
builder1.declareParameter(List.class);
builder1.declareParameter(Result.class);
builder1.addInput("a1", a1, new ShuffleKey(Arrays.asList(new String[]{"string"}), Arrays.asList(new
ShuffleKey.Order[]{new ShuffleKey.Order("value", ShuffleKey.Direction.DESC)})));
builder1.addOutput("r1", Ex1.class);
builder1.addAttribute(FlowBoundary.SHUFFLE);
builder1.addAttribute(ObservationCount.DONT_CARE);
builder1.addAttribute(InputBuffer.EXPAND);