How to sort by an given array in many different ways (in Rails with ActiveRecord with Postgres) Wayne April 22, 2020 Database Rails