<?xml version="1.0"?>
<Reports>
  <FormatVersion>1.0 1.0.0.0</FormatVersion>
  <Report ref="1">
    <Name>Sorting</Name>
    <DataSourceName>Main</DataSourceName>
    <OnOpen>Report.Groups(0).GroupBy = Replace([Sort Report By], " ", "")
Report.Groups(0).Sort = [Sort Direction]</OnOpen>
    <Layout>
      <Orientation>Portrait</Orientation>
    </Layout>
    <Font>
      <Name>Verdana</Name>
      <Size>9</Size>
      <Bold>false</Bold>
      <Italic>false</Italic>
      <Underline>false</Underline>
      <Strikethrough>false</Strikethrough>
      <GdiCharSet>1</GdiCharSet>
    </Font>
    <DataSources>
      <DataSource>
        <Name>Main</Name>
        <DataProvider>OLEDB</DataProvider>
        <ConnectionString>Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|C1NWind.mdb;Persist Security Info=False</ConnectionString>
        <RecordSource>select * from products;</RecordSource>
      </DataSource>
    </DataSources>
    <ReportParameters>
      <ReportParameter>
        <Name>Sort Report By</Name>
        <Value sys="string">Product Name</Value>
        <AllowedValuesDefinition>
          <Values>
            <ReportLabeledValue>
              <Value>
                <Value sys="string">Product Name</Value>
              </Value>
              <Label>
                <Value>Product Name</Value>
              </Label>
            </ReportLabeledValue>
            <ReportLabeledValue>
              <Value>
                <Value sys="string">Unit Price</Value>
              </Value>
              <Label>
                <Value>Unit Price</Value>
              </Label>
            </ReportLabeledValue>
            <ReportLabeledValue>
              <Value>
                <Value sys="string">Units In Stock</Value>
              </Value>
              <Label>
                <Value>Units In Stock</Value>
              </Label>
            </ReportLabeledValue>
          </Values>
        </AllowedValuesDefinition>
      </ReportParameter>
      <ReportParameter>
        <Name>Sort Direction</Name>
        <Value sys="string">Ascending</Value>
        <AllowedValuesDefinition>
          <Values>
            <ReportLabeledValue>
              <Value>
                <Value sys="string">Ascending</Value>
              </Value>
              <Label>
                <Value>Ascending</Value>
              </Label>
            </ReportLabeledValue>
            <ReportLabeledValue>
              <Value>
                <Value sys="string">Descending</Value>
              </Value>
              <Label>
                <Value>Descending</Value>
              </Label>
            </ReportLabeledValue>
          </Values>
        </AllowedValuesDefinition>
      </ReportParameter>
    </ReportParameters>
    <Groups>
      <Group>
        <Name>SortingGroup</Name>
        <GroupBy>UnitPrice</GroupBy>
        <Sort>Descending</Sort>
      </Group>
    </Groups>
    <Sections>
      <Section>
        <Name>Detail</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
            <Height>255</Height>
          </SubSection>
        </SubSections>
        <Type>Detail</Type>
      </Section>
      <Section>
        <Name>Header</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
            <Height>2490</Height>
          </SubSection>
        </SubSections>
        <Type>Header</Type>
      </Section>
      <Section>
        <Name>Footer</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
          </SubSection>
        </SubSections>
        <Type>Footer</Type>
        <Visible>false</Visible>
      </Section>
      <Section>
        <Name>PageHeader</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
            <Height>600</Height>
          </SubSection>
        </SubSections>
        <Type>PageHeader</Type>
      </Section>
      <Section>
        <Name>PageFooter</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
            <Height>450</Height>
          </SubSection>
        </SubSections>
        <Type>PageFooter</Type>
      </Section>
      <Section>
        <Name>SortingGroup Header</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
          </SubSection>
        </SubSections>
        <Type>GroupHeader1</Type>
        <Visible>false</Visible>
      </Section>
      <Section>
        <Name>SortingGroup Footer</Name>
        <SubSections>
          <SubSection>
            <Name>SubSection1</Name>
          </SubSection>
        </SubSections>
        <Type>GroupFooter1</Type>
        <Visible>false</Visible>
      </Section>
    </Sections>
    <Fields>
      <Field>
        <Name>titleLbl</Name>
        <Section>Header</Section>
        <Left>90</Left>
        <Top>795</Top>
        <Width>2370</Width>
        <Height>600</Height>
        <Text>Sorting</Text>
        <Align>LeftMiddle</Align>
        <ForeColor>FF006F00</ForeColor>
        <Font>
          <Name>Calibri</Name>
          <Size>18</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>ftrRight</Name>
        <Section>PageFooter</Section>
        <Left>4680</Left>
        <Top>105</Top>
        <Width>4680</Width>
        <Height>300</Height>
        <Text>"Page " &amp; [Page] &amp; " of " &amp; [Pages]</Text>
        <Calculated>true</Calculated>
        <Align>RightTop</Align>
        <Font>
          <Name>Calibri</Name>
          <Size>9</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>ProductNameLbl</Name>
        <Section>PageHeader</Section>
        <Left>0</Left>
        <Top>105</Top>
        <Width>2880</Width>
        <Height>405</Height>
        <Text>ProductName</Text>
        <Align>LeftBottom</Align>
        <ForeColor>FF595959</ForeColor>
        <WordWrap>false</WordWrap>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>true</Bold>
          <Italic>false</Italic>
          <Underline>true</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>UnitPriceLbl</Name>
        <Section>PageHeader</Section>
        <Left>3725</Left>
        <Top>105</Top>
        <Width>1600</Width>
        <Height>405</Height>
        <Text>UnitPrice</Text>
        <Align>RightBottom</Align>
        <ForeColor>FF595959</ForeColor>
        <WordWrap>false</WordWrap>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>true</Bold>
          <Italic>false</Italic>
          <Underline>true</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>UnitsInStockLbl</Name>
        <Section>PageHeader</Section>
        <Left>5570</Left>
        <Top>105</Top>
        <Width>960</Width>
        <Height>405</Height>
        <Text>In Stock</Text>
        <Align>RightBottom</Align>
        <ForeColor>FF595959</ForeColor>
        <WordWrap>false</WordWrap>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>true</Bold>
          <Italic>false</Italic>
          <Underline>true</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>ProductNameCtl</Name>
        <Section>Detail</Section>
        <Left>0</Left>
        <Top>0</Top>
        <Width>3690</Width>
        <Height>255</Height>
        <Text>ProductName</Text>
        <Calculated>true</Calculated>
        <Align>LeftTop</Align>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>UnitPriceCtl</Name>
        <Section>Detail</Section>
        <Left>3725</Left>
        <Top>0</Top>
        <Width>1600</Width>
        <Height>250</Height>
        <Text>UnitPrice</Text>
        <Calculated>true</Calculated>
        <Format>Currency</Format>
        <Align>RightTop</Align>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>UnitsInStockCtl</Name>
        <Section>Detail</Section>
        <Left>5570</Left>
        <Top>0</Top>
        <Width>960</Width>
        <Height>250</Height>
        <Text>UnitsInStock</Text>
        <Calculated>true</Calculated>
        <Format>#,##0</Format>
        <Align>RightTop</Align>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>UnitsInStockCtl1</Name>
        <Section>Detail</Section>
        <Left>6930</Left>
        <Top>0</Top>
        <Width>1065</Width>
        <Height>255</Height>
        <Text>UnitsInStock</Text>
        <Calculated>true</Calculated>
        <Format>#,##0</Format>
        <Align>RightTop</Align>
        <RunningSum>SumOverAll</RunningSum>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>UnitsInStockLbl2</Name>
        <Section>PageHeader</Section>
        <Left>6735</Left>
        <Top>105</Top>
        <Width>1350</Width>
        <Height>405</Height>
        <Text>Overall Sum</Text>
        <Align>RightBottom</Align>
        <ForeColor>FF595959</ForeColor>
        <WordWrap>false</WordWrap>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>true</Bold>
          <Italic>false</Italic>
          <Underline>true</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>Field</Name>
        <Section>Header</Section>
        <Left>0</Left>
        <Top>1710</Top>
        <Width>9270</Width>
        <Height>780</Height>
        <MarginLeft>200</MarginLeft>
        <Text>This Report demonstrates Sorting Feature of FlexReport. Click Sorting Ellipsis of DataSource properties to view the Sorting settings in the report. The report sorts the Report by Report Fields and user can also give Sort Direction through Parameters.</Text>
        <Font>
          <Name>Calibri</Name>
          <Size>9.75</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>Field2</Name>
        <Border>
          <Left>
            <Style>Solid</Style>
            <Width>15</Width>
          </Left>
          <Top>
            <Style>Solid</Style>
            <Width>15</Width>
          </Top>
          <Right>
            <Style>Solid</Style>
            <Width>15</Width>
          </Right>
          <Bottom>
            <Style>Solid</Style>
            <Width>15</Width>
          </Bottom>
        </Border>
        <Section>PageFooter</Section>
        <Left>0</Left>
        <Top>75</Top>
        <Width>9345</Width>
        <Height>30</Height>
        <Shape type="LineShape" />
      </Field>
      <Field>
        <Name>Field1</Name>
        <Border>
          <Left>
            <Style>Solid</Style>
            <Width>30</Width>
            <Color>FF008000</Color>
          </Left>
          <Top>
            <Style>Solid</Style>
            <Width>30</Width>
            <Color>FF008000</Color>
          </Top>
          <Right>
            <Style>Solid</Style>
            <Width>30</Width>
            <Color>FF008000</Color>
          </Right>
          <Bottom>
            <Style>Solid</Style>
            <Width>30</Width>
            <Color>FF008000</Color>
          </Bottom>
        </Border>
        <Section>Header</Section>
        <Left>60</Left>
        <Top>1485</Top>
        <Width>9150</Width>
        <Height>150</Height>
        <Shape type="LineShape" />
      </Field>
      <Field>
        <Name>Field3</Name>
        <Section>Header</Section>
        <Left>5460</Left>
        <Top>1095</Top>
        <Width>1545</Width>
        <Height>315</Height>
        <Text>Today</Text>
        <Align>RightTop</Align>
        <ForeColor>FF006F00</ForeColor>
        <Font>
          <Name>Calibri</Name>
          <Size>9</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>ftrLeft1</Name>
        <Section>Header</Section>
        <Left>7050</Left>
        <Top>1095</Top>
        <Width>2160</Width>
        <Height>300</Height>
        <Text>Now()</Text>
        <Calculated>true</Calculated>
        <Align>LeftTop</Align>
        <ForeColor>FF006F00</ForeColor>
        <Font>
          <Name>Calibri</Name>
          <Size>9</Size>
          <Bold>false</Bold>
          <Italic>false</Italic>
          <Underline>false</Underline>
          <Strikethrough>false</Strikethrough>
          <GdiCharSet>1</GdiCharSet>
        </Font>
      </Field>
      <Field>
        <Name>Field4</Name>
        <Section>Header</Section>
        <Left>60</Left>
        <Top>30</Top>
        <Width>4065</Width>
        <Height>600</Height>
        <PictureScale>Scale</PictureScale>
        <Picture>
          <Image> </Image>
        </Picture>
      </Field>
    </Fields>
  </Report>
</Reports>