Question
Verity and CFQUERY Order By Problem
I am hoping there is a simple cure, but as I have learned
nothing really ever comes easy. Here's the problem I am having.
In the 4 steps below I query a verity collection, run a query (QoQ) against it in order to sort the results by the search score. I then put all items found (key) into a list, then pass this list to a query that looks in the main database to find all items in the list. The problem I am having is that the last query (step 4) doesn't pull the items in the same order they appear in the list. When I output the results of the last query the results are no longer in order of relevance (score). Is there a way to have the last cfquery pull the items in order they appear in the list created in step 3?
I have tried an alternative method of doing a list loop around the query and output, but found issues when trying to allow the user to drill down further (by manufacturer, category, etc.) and also with creating a "Previous, Next" button navigation. Any help would be greatly appreciated.
Ron
In the 4 steps below I query a verity collection, run a query (QoQ) against it in order to sort the results by the search score. I then put all items found (key) into a list, then pass this list to a query that looks in the main database to find all items in the list. The problem I am having is that the last query (step 4) doesn't pull the items in the same order they appear in the list. When I output the results of the last query the results are no longer in order of relevance (score). Is there a way to have the last cfquery pull the items in order they appear in the list created in step 3?
I have tried an alternative method of doing a list loop around the query and output, but found issues when trying to allow the user to drill down further (by manufacturer, category, etc.) and also with creating a "Previous, Next" button navigation. Any help would be greatly appreciated.
Ron
