anchor.diff:    if (hitsPerSiteString != null)
       hitsPerSite = Integer.parseInt(hitsPerSiteString);
   
  +  String sort = request.getParameter("sort");
  +  boolean reverse =
  +    sort!=null && "true".equals(request.getParameter("reverse"));
  +
  +  String params = "&hitsPerPage="+hitsPerPage
  +     +(sort==null ? "" : "&sort="+sort+(reverse?"&reverse=true":""));
  +
     int hitsToCluster = HITS_TO_CLUSTER;            // number of hits to cluster
   
     Query query = Query.parse(queryString);
  
positive.code:   String requestURI = HttpUtils.getRequestURL(request).toString();
    String base = requestURI.substring(0, requestURI.lastIndexOf('/'));
    String rss = "../opensearch?query="+htmlQueryString
      +"&hitsPerSite="+hitsPerSite
      +"&hitsPerPage="+hitsPerPage;
  %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <%
    // To prevent the character encoding declared with 'contentType' page
  
negative.code:     // position.... this is good, bad?... ugly?....
     Hits hits;
     try{
       hits = bean.search(query, start + hitsToRetrieve, hitsPerSite, "site",
                          sort, reverse);
     } catch (IOException e){
       hits = new Hits(0,new Hit[0]);	
     }
  