PostgreSQL window functions: ORDER is also available in addition to PARTITION in the OVER clause