How do I achieve something like the below in sequelize?
SELECT *,
<someSubQueryThatReturnsABool> myFirstBool
<someSubQueryThatReturnsABool> mySecondBool
FROM MyTable
ORDER BY
CASE
when myBool is true and mySecondBool is false then 1
when myBool is true then 2
END