order by array_position does not order the records in postgres
Using array_positions either throws error or ignores the order
If i try to do it this way i get an function array_position(record, character varying) does not exist error
If i join the array elements then I don't get an error but the order does not change
However, If I hardcode the ids I get the correct order
1 Reply
I had to use
sql.raw()
to get it working