Hi everyone:
I am trying to use the costom search api and expect the result to be sorted by date after adding stuff like this into the code:
options[google.search.Search.RESTRICT_EXTENDED_ARGS] = { 'sort': 'date' }; var customSearchControl = new google.search.CustomSearchControl(customSearchKey[divIndex], options);
It works, but only sometimes, not always. Whenever the results are not sorted correctly, it however shows the same sequence.
Does anyone know what this problem is? and How should I fix it??
Many thanks!!! |