docs: public String addSortParams(boolean bIncludeFileName, boolean bForceUniqueKey)
      {
          String strSort = DBConstants.BLANK;
          int iKeyFieldCount = this.getKeyFields(bForceUniqueKey, false);
          for (int iKeyFieldSeq = DBConstants.MAIN_KEY_FIELD; iKeyFieldSeq < iKeyFieldCount; iKeyFieldSeq++)
          {
              KeyField keyField = this.getKeyField(iKeyFieldSeq, bForceUniqueKey);
              BaseField field = keyField.getField(DBConstants.FILE_KEY_AREA);
              if (strSort.length() > 0)
                  strSort += ",";
              strSort += field.getFieldName(true, bIncludeFileName);
              if (keyField.getKeyOrder() == DBConstants.DESCENDING)
                  strSort += " DESC";     // Descending
          }
          if (strSort.length() > 0)
              strSort = " ORDER BY " + strSort;
          return strSort;
      }