code: public void setSortDirection(final SortDirection _sortdirection)
      {
          this.sortDirection = _sortdirection;
          try {
              Context.getThreadContext().setUserAttribute(getCacheKey(UserCacheKey.SORTDIRECTION),
                              _sortdirection.getValue());
          } catch (final EFapsException e) {
              // we don't throw an error because this are only Usersettings
              AbstractUIHeaderObject.LOG.error("error during the retrieve of UserAttributes", e);
          }
      }
docs: Method to set he sort direction.
  
  @param _sortdirection sort direction to set