I am migrating an app to use Room
from normal Sqlite
and one part that I am having trouble with is that there are several queries that have an order by statement that are user configurable, meaning they can change how they want to view the list order.
What it seems is the Room does not allow for dynamic order by statements so I would have to make individual queries specific for each order by statement.
Has anyone found a better way around this issue so I can have 1 query statement where the only thing that changes is the order by clause vs having to write what in my case would be about 15 extra query statements all basically the same?