Dynamic orderBy

I would like to dynamically add ordering to my select().from()... (I'm getting ordering criteria from frontend as a pair of column name and direction)
Is there something similar as getTableColumns to get typed colums so I could find desired column by its name to use in orderBy() method?
Was this page helpful?