Expand order(:symbol) to "table".symbol to prevent broken queries on PG.

Fixes #9275.

When `#order` is called with a Symbol this patch will prepend the quoted_table_name.
Before the postgresql adapter failed to build queries containg a join and an order
with a symbol.

This expansion happens for all adapters.

I moved the expansion directly into relation becuase the `Adapter#distinct` (where the problem occurs) method does not know the table name. Also I don't think every method using `order_values` should know how to expand symbols when we can just deal with strings.