I have a repeat control that is bound to a view. Users can select which documents to display in the view by making a view selection from a combo box. I also have an option for the user to create a search query for the selected view. The search query string is stored in the data binding for the view under "Search in View Results".
Each of these options work, users can select which view they wish to see the documents in (by date, by number, etc) or they can create a query string to run against the selected view.
HOWEVER, the results of the query return the documents sorted by relevance (I'm guessing) and not in the order they are sorted in the backend view. How can I represent the documents from the query search in a specific order?
I know there are ways to do this with ssjs to return an array or doc collection - but my repeat control is already in place and simply bound to the view. Users change the view and the repeat is refreshed. So, I'd like to keep it simple - ideally - and either return the results in a sorted order - OR - provide the ability for users to sort by a column in the repeat after the results are returned.
I hope that makes sense.