Fixed last_mark after sort order has been changed.
Allow to start search with enter in input field of search form.