select x from (select 1 x unionselect 2 unionselect 3) torder by (select -x) asc
+----+| X|+----+| 3|| 2|| 1|+----+
+----+| X|+----+| 1|| 2|| 3|+----+
select x from (select 1 x unionselect 2 unionselect 3) torder by -x asc
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.
select y from (select 1 y union
select 2 unionselect 3) t
order by (select -y) asc
--
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/OiaVKbNwAx0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to h2-database...@googlegroups.com.