Dynamic ORDER BY clause, getting "no type can be inferred"

No, I’m trying to sort by a dynamic parameter, I’ve simplified the evaluate as much as possible to reduce possible errors but the goal is to be able to pass a sortBy param and get it sorted either by units sold, sales or fees.