What I did: I ran a raw query with an "order by date DESC" clause.
//simplified example
const events = await db.query(`
select evt_id, evt_occurred_at
from events
order by evt_occurred_at desc`, [], {
decompose: {
pk: 'evt_id',
columns: ['evt_id', 'evt_occurred_at']
})
What I expected: The decomposed results should have been ordered in descending order by evt_occurred_at.
What actually happened: The decomposed results were ordered in ascending order by evt_id.
massive version: 4.6.3
What I did: I ran a raw query with an "order by date DESC" clause.
What I expected: The decomposed results should have been ordered in descending order by evt_occurred_at. What actually happened: The decomposed results were ordered in ascending order by evt_id.