<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
	
<!--
***********************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * 
 * Copyright 2000, 2010 Oracle and/or its affiliates.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************
 -->
 
	
<meta>
      <topic id="textscalcguidedatabase_sortxml" indexer="include" status="PUBLISH">
         <title xml-lang="en-US" id="tit">Sorting Data </title>
         <filename>/text/scalc/guide/database_sort.xhp</filename>
      </topic>
   </meta>
   <body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3150767"><bookmark_value>database ranges; sorting</bookmark_value>
      <bookmark_value>sorting; database ranges</bookmark_value>
      <bookmark_value>data;sorting in databases</bookmark_value>
</bookmark>
<paragraph xml-lang="en-US" id="hd_id3150767" role="heading" level="1" l10n="U"
                 oldref="44"><variable id="database_sort"><link href="text/scalc/guide/database_sort.xhp" name="Sorting Database Ranges">Sorting Data</link>
</variable></paragraph>
      <list type="ordered">
         <listitem>
            <paragraph xml-lang="en-US" id="par_id3145751" role="listitem" l10n="U" oldref="45">Click in a database range.</paragraph>
            <paragraph xml-lang="en-US" id="par_id121020081121549" role="listitem" l10n="NEW">If you select a range of cells, only these cells will get sorted. If you just click one cell without selecting, then the whole database range will get sorted.</paragraph>
         </listitem>
         <listitem>
            <paragraph xml-lang="en-US" id="par_idN10635" role="listitem" l10n="NEW">Choose <item type="menuitem">Data - Sort</item>.</paragraph>
            <paragraph xml-lang="en-US" id="par_id121020081121547" role="listitem" l10n="NEW">The range of cells that will get sorted is shown in inverted colors.</paragraph>
         </listitem>
         <listitem>
            <paragraph xml-lang="en-US" id="par_idN10645" role="listitem" l10n="NEW">Select the sort options that you want.</paragraph>
         </listitem>
         <listitem>
            <paragraph xml-lang="en-US" id="par_idN1063D" role="listitem" l10n="NEW">Click <emph>OK</emph>.</paragraph>
         </listitem>
      </list>
      <section id="relatedtopics">
         <embed href="text/scalc/guide/database_define.xhp#database_define"/>
         <embed href="text/scalc/guide/database_filter.xhp#database_filter"/>
         <paragraph xml-lang="en-US" id="par_id1846980" role="paragraph" l10n="NEW"><link href="http://wiki.documentfoundation.org/Documentation/How_Tos/Defining_a_Data_Range">Wiki page about defining a data range</link></paragraph>
      </section>
   </body>
</helpdocument>