group / distinct should be unordered