use explicit order to make tests deterministic
Our database does not use a default ordering for returning results. This was nicely shown by trying out unlogged tables (!1564 (closed) ) for which these tests provoked undeterministic failures.
If order is compared the database should return results according to this order.
Edited by Michael Prilop