added sort in itemsearch, passing secret key, response more solid