1 2 3 4 5 6
/* postgres can not */ USE plato; insert into Output select * from Input order by key desc, subkey desc;