anchor.diff:          </ccp:permission>
         </c:if>
         <c:if test="${!empty fileItemList}">
  +        <portlet:renderURL var="sortByRecentUrl">
  +          <portlet:param name="portlet-action" value="show"/>
  +          <c:if test="${!empty currentFolder}">
  +            <portlet:param name="portlet-value" value="${currentFolder.id}"/>
  +          </c:if>
  +          <c:if test="${!empty currentDate}">
  +            <portlet:param name="portlet-value" value="date"/>
  +            <portlet:param name="portlet-params" value="${currentDate}"/>
  +          </c:if>
  +        </portlet:renderURL>
  +        <portlet:renderURL var="sortByAlphabeticalUrl">
  +          <portlet:param name="portlet-action" value="show"/>
  +          <c:if test="${!empty currentFolder}">
  +            <portlet:param name="portlet-value" value="${currentFolder.id}"/>
  +          </c:if>
  +          <c:if test="${!empty currentDate}">
  +            <portlet:param name="portlet-value" value="date"/>
  +            <portlet:param name="portlet-params" value="${currentDate}"/>
  +          </c:if>
  +          <portlet:param name="view" value="a-z"/>
  +        </portlet:renderURL>
           <li class="last">
             sort by
             <a href="${sortByRecentUrl}">recent</a> or
  
positive.code:         </c:choose>
        </c:when>
      </c:choose>
      <%-- sorting bars
      <portlet:renderURL var="sortByRecentUrl">
        <portlet:param name="portlet-action" value="show"/>
        <c:if test="${!empty currentFolder}">
          <portlet:param name="portlet-value" value="${currentFolder.id}"/>
        </c:if>
        <c:if test="${!empty currentDate}">
          <portlet:param name="portlet-value" value="date"/>
          <portlet:param name="portlet-params" value="${currentDate}"/>
        </c:if>
      </portlet:renderURL>
      <portlet:renderURL var="sortByAlphabeticalUrl">
        <portlet:param name="portlet-action" value="show"/>
        <c:if test="${!empty currentFolder}">
          <portlet:param name="portlet-value" value="${currentFolder.id}"/>
        </c:if>
        <c:if test="${!empty currentDate}">
          <portlet:param name="portlet-value" value="date"/>
          <portlet:param name="portlet-params" value="${currentDate}"/>
        </c:if>
        <portlet:param name="view" value="a-z"/>
      </portlet:renderURL>
      --%>
    </div>
    <ccp:permission name="project-documents-files-download" if="none">
      <ccp:evaluate if="<%= !User.isLoggedIn() && project.getFeatures().getAllowGuests() %>">
  
negative.code:   <c:if test="${!empty fileItemList}">
      <div class="portlet-section">
        <ol>
          <%
            int rowid = 0;
            for (FileItem thisFile : fileItemList) {
  