This content has been marked as final. Show 4 replies
From what I remember, you can't specify multiple sort attributes.
In fact, don't specify the sort at all. Run the CFLDAP tag, then use Query of Query to do the final sorting.
Are you saying not to even use sort on one field? And what do you mean "query of query"? How do you sort this way?
Exactly. There is no reason to have the LDAP server sort the results during the retrieval.
Query of Query can be used such as:
<cfldap name="ldapResults" .....> <!--- Do the LDAP query first --->
<cfquery dbtype="query" name="sortedResults">
Then, use the "sortedResults" query for the rest of your processing.
Thanks - it works great!