Vince Collins wrote:
>
> That suggestion works. However, in an example of a query with 10
> columns and assuming you want to allow desc and asc, does anyone have a
> more conscience way other than 20 cfcase statements?
Check if your database support ordering by the ordinal number of the
column in the resultset, i.e. the following sorts by t.B:
SELECT
t.A
, t.B
, t.C
FROM
table t
ORDER BY
2
Jochem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288612
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4