DuckDB has a good range of functions for dealing with lists and arrays. Amongst these are list_reverse()
and a list_reverse_sort()
. Looking at their names, you could be forgiven for thinking that these do the same thing. But they don’t.
If you’re wondering why DuckDB has a list_reverse()
and a list_reverse_sort()
function, read on.