aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki/pagespec/sorting/index.html
blob: 5bf24958251bdde06484887dc81697489a065617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sorting</title>

<link rel="stylesheet" href="../../../bootstrap/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="../../../bootstrap/css/bootstrap-responsive.min.css" />

<link rel="stylesheet" href="../../../local.css" type="text/css" />




<meta name="robots" content="noindex, follow" />
<style type="text/css">
@media (max-width: 979px) {
  .navbar-fixed-top {
    position: fixed;
    margin-left: 0px;
    margin-right: 0px;
  }
}
</style>
</head>
<body>

<div class="container">

  <div class="row-fluid">
    <div class="span12">
      <h1></h1>

      <ul class="breadcrumb">
      
          <li><a href="../../../">Cache Saravento</a> <span class="divider">/</span> </li>
      
          <li><a href="../../">ikiwiki</a> <span class="divider">/</span> </li>
      
          <li><a href="../">pagespec</a> <span class="divider">/</span> </li>
      
      <li>sorting</li>
      <li><span class="divider">|</span> <a href="../../../data">Dados</a></li>
      <!--<li><span class="divider">|</span> <a href="../../../todo">Tarefas</a></li>-->
      <li><span class="divider">|</span> <a href="https://git.fluxo.info/?p=cache.git;a=history;f=ikiwiki/pagespec/sorting.mdwn">Histórico</a></li>
      <li><span class="divider">|</span> <a href="https://git.fluxo.info/cache/atom/?h=master">Feed</a></li>
      </ul>
    </div>
  </div>

  <div class="page row-fluid">

  <div>
    <div class="pageheader">
    <div class="header">
    <h1>
    sorting
    
    </h1>
    
    </div>

    </div>

    <div id="pagebody">

    <div id="content">
    <p class="pagedate">
    <strong>Posted <span class="date">Sáb 12 Nov 2011 14:02:20 -02</span></strong>
    </p>
    <p>Some <a href="../../directive/">directives</a> that use
<a href="../">PageSpecs</a> allow
specifying the order that matching pages are shown in. The following sort
orders can be specified.</p>

<ul>
<li><p><code>age</code> - List pages from the most recently created to the oldest.</p></li>
<li><p><code>mtime</code> - List pages with the most recently modified first.</p></li>
<li><p><code>title</code> - Order by title (page name), e.g. "z/a a/b a/c"</p></li>
<li><p><code>path</code> - Order by page name including parents, e.g. "a/b a/c z/a"</p></li>
<li><p><code>meta(title)</code> - Order according to the <code>[[!meta  title="foo" sortas="bar"]]</code>
or <code>[[!meta  title="foo"]]</code> <a href="../../directive/">directive</a>, or the page name if no
full title was set. <code>meta(author)</code>, <code>meta(date)</code>, <code>meta(updated)</code>, etc.
also work.</p></li>
</ul>


<p>In addition, you can combine several sort orders and/or reverse the order of
sorting, with a string like <code>age -title</code> (which would sort by age, then by
title in reverse order if two pages have the same age).</p>

    </div>

    <hr />

    
    
    

    </div>

    <div id="footer" class="pagefooter">
    
    <div id="pageinfo">

    

    

    

    

    <!--<div class="pagedate">
    Last edited <span class="date">Qua 11 Jan 2017 16:18:52 -02</span>
    </div> -->

    </div>
    
    
    <!-- from Cache Saravento -->
    </div>

  </div>

  <div class="span4">

    

  </div>

  </div>
</div>

</body>
</html>