code: public String addSortParams(boolean bIncludeFileName, boolean bForceUniqueKey)
      {
          String strSort = super.addSortParams(bIncludeFileName, bForceUniqueKey);
          if (strSort.length() > 0)
              return strSort;     // Sort string was specified for this "QueryRecord"
          Record stmtTable = this.getRecordlistAt(0);
          if (stmtTable != null)
              strSort += stmtTable.addSortParams(bIncludeFileName, bForceUniqueKey);
          return strSort;
      }
docs: Setup the SQL Sort String.
  @param bIncludeFileName If true, include the filename with the fieldname in the string.
  @param bForceUniqueKey If params must be unique, if they aren't, add the unique key to the end.
  @return The SQL sort string.