<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="gedit-plugins-sort" xml:lang="zh-CN">

<info>
  <link type="guide" xref="gedit-plugin-guide#gedit-default-plugins"/>
  <revision pkgversion="3.8" date="2013-02-24" status="review"/>
  <credit type="author">
    <name>Daniel Neel</name>
    <email>dneelyep@gmail.com</email>
  </credit>
  <credit type="author">
    <name>Jim Campbell</name>
    <email>jcampbell@gnome.org</email>
  </credit>
  <credit type="editor">
    <name>Sindhu S</name>
    <email>sindhus@live.in</email>
  </credit>
  <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
  <desc>Sort lines of text into alphabetical order.</desc>

    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>TeliuTe</mal:name>
      <mal:email>teliute@163.com</mal:email>
      <mal:years>2009, 2011</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Colin Zhao</mal:name>
      <mal:email>lonely.ibm@gmail.com</mal:email>
      <mal:years>2011</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>wancheng zhang</mal:name>
      <mal:email>wancheng.com.cn@gmail.com</mal:email>
      <mal:years>2012</mal:years>
    </mal:credit>
  </info>

<title>排序</title>

  <p>排序插件，可以按字母顺序排列选中的文本行。</p>

  <note style="warning">
    <p>由于<gui>排序</gui>无法使用<gui>撤消</gui>命令恢复，所以建议您在执行排序前保存文件，如果您发现排序操作产生错误，可以通过点菜单  <guiseq><gui>文件</gui><gui>还原</gui></guiseq> 命令，恢复为之前保存的文件。</p>
</note>

  <section id="enable-sort">
    <title>启用排序插件</title>

    <p>要启用<app>排序</app>插件：</p>

    <steps>
      <item>
        <p>点菜单 <guiseq><gui style="menu">gedit</gui> <gui style="menuitem">首选项</gui> <gui style="tab">插件</gui></guiseq>。</p>
      </item>
      <item>
        <p>选择 <gui style="menuitem">排序</gui> 来启用该插件。</p>
      </item>
    </steps>

  </section>

  <section id="using-sort">
    <title>使用排序插件</title>

    <p>要使用<gui>排序</gui>插件：</p>

    <steps>
      <item>
        <p>Drag and highlight the desired lines of text.</p>
      </item>
      <item>
        <p>Select <guiseq><gui style="menu">gedit</gui>
        <gui style="menuitem">Sort</gui></guiseq>.</p>
      </item>
      <item>
        <p>在出来的<gui>排序</gui>对话框中，有几个选项可供选择：</p>
        <list>
          <item>
            <p><gui>逆序</gui> 按照相反字母顺序排序。</p>
          </item>
          <item>
            <p><gui>删除重复内容</gui> 删除列表中重复的行。</p>
          </item>
          <item>
            <p><gui>忽略大小写</gui> 不区分字母的大小写。</p>
            <note style="tip">
              <p>To have the sort ignore the characters at the start of the
              lines, set the first character that should be used for sorting in
              the <gui>Start at</gui> column spin box.</p>
            </note>
          </item>
        </list>
      </item>
      <item>
        <p>要执行排序操作，点击 <gui>排序</gui> 按钮。</p>
      </item>
    </steps>
  </section>

</page>
