slamdata/slamengine — pull request #374 by mossprescott (2014-10-08 20:33:06+00:00)
Title: Preserve order in distinctBy

WorkflowBuilder now inspects the merged source workflow and if it is ordered,
attempts to reconstruct the $sort op after grouping. This works only if the
source pipeline has one of a couple of recognized shapes.