In psql (at least in v9), if I do
select id from users where id in (2, 1, 1);
and
select id from users where id in (1, 2);
They both return the results in the same order (and eliminate dups) like: 1, 2
. How do I return 2, 1, 1
instead in the first query?