> select distinct x from foo order by y;> > which produces ill-defined results.
Why is this ill-defined? If y is in x then it is also distinct andthere's no logic problem sorting on it.