Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How do I sort Quick Search in descending order?
System
I currently have code to Quick Search and returns 100 assets at a given instant. I have a container of thousands of assets and they are all named by date (and other info) thus they are sorted in chronological order. However, I would like to return my 100 results in descending order of the name of the asset. Essentially I want to Quick Search the 100 newest records.
How do I do that?
Example of file names.
2007-11-08T014739Z_01_NAS103-_RTRIDSP_3_MUSIC-COUNTRY-AWARDS.jpg
2007-11-10T095146Z_01_JER24-_RTRIDSP_3_PALESTINIANS-ISRAEL.jpg
Find more posts tagged with
Comments
Migrateduser
Are you writing code against one of our APIs? If so, which one?
For the COM API, you would initialize your Search Criteria object before submitting the search. The Search Criteria interface exposes a property called IsSortAscending. You would get the desired result if you initialize this property to False.
Migrateduser
We do most of our coding in .net framework leveraging the interop on Mark's MBPNetModel.dll.
I don't see that method exposed. Is there another way?
Migrateduser
I'll have to defer to Mark to answer that question.
msnider
Unfortunately, the web service and it's native assembly do not expose the ability to change the default sorting of the return results (the list is sorted in ascending order by asset name).
However, since you are writing directly against the native assembly (MBPNetModel.dll) you can access the underlying session object directly (by calling the accessor MBPNetModel.MediaBinSession) and code your own search routine to return the results in descending order.
Mark