// transpose values in fields by natural sort order
pipe = new Each( pipe, new SortElements( new Fields( "name1", "rate1" ), new Fields( "name2", "rate2" ) ) );
// unique the pipe
pipe = new GroupBy( pipe, Fields.ALL );
pipe = new Every( pipe, Fields.ALL, new First(), Fields.RESULTS );
// calculate square of diff
Function sqDiff = new Identity( new Fields( "score" ) )
{
public void operate( FlowProcess flowProcess, FunctionCall functionCall )