https://wiki.geogebra.org/s/zh/index.php?title=Sort_%E6%8C%87%E4%BB%A4&feed=atom&action=history
Sort 指令 - 版本历史
2024-03-29T06:03:14Z
本wiki的该页面的版本历史
MediaWiki 1.35.1
https://wiki.geogebra.org/s/zh/index.php?title=Sort_%E6%8C%87%E4%BB%A4&diff=6780&oldid=prev
2021年11月15日 (一) 09:12 Nuhero
2021-11-15T09:12:10Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="zh">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">←上一版本</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">2021年11月15日 (一) 09:12的版本</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l8" >第8行:</td>
<td colspan="2" class="diff-lineno">第8行:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* <code>Sort({(3, 2), (2, 5), (4, 1)})</code> 產生 ''{(2, 5), (3, 2), (4, 1)}''。</div>}}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* <code>Sort({(3, 2), (2, 5), (4, 1)})</code> 產生 ''{(2, 5), (3, 2), (4, 1)}''。</div>}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>; Sort( <值>, <鍵> ): <值> <del class="diffchange diffchange-inline">串列 </del>元素會依據相對應的 <鍵> <del class="diffchange diffchange-inline">串列 </del>元素來進行排序。</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>; Sort( <值 <ins class="diffchange diffchange-inline">串列</ins>>, <鍵 <ins class="diffchange diffchange-inline">串列</ins>> ): <值 <ins class="diffchange diffchange-inline">串列</ins>> 元素會依據相對應的 <鍵 <ins class="diffchange diffchange-inline">串列</ins>> 元素來進行排序。</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:{{Examples|1=<div></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:{{Examples|1=<div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* <del class="diffchange diffchange-inline">In order to sort a list of polynomials </del><code>list1 = {x^3, x^2, x^6}</code> <del class="diffchange diffchange-inline">according to degree, create the dependent list of degrees </del><code>list2 = Zip(Degree(a), a, list1)</code><del class="diffchange diffchange-inline">. After that, </del><code> Sort(list1, list2)</code> <del class="diffchange diffchange-inline">yields the requested </del>''list3 = {x^2, x^3, x^6}''<del class="diffchange diffchange-inline">.</del></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* <ins class="diffchange diffchange-inline">為了將多項式串列 </ins><code>list1 = {x^3, x^2, x^6}</code> <ins class="diffchange diffchange-inline">依據次數(degree)來排序,先建立一個相依的次數串列 </ins><code>list2 = Zip(Degree(a), a, list1)</code> <ins class="diffchange diffchange-inline">。接著輸入 </ins><code> Sort(list1, list2)</code> <ins class="diffchange diffchange-inline">會產生所求串列 </ins>''list3 = {x^2, x^3, x^6}'' <ins class="diffchange diffchange-inline">。</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* <del class="diffchange diffchange-inline">In order to draw the polygon having as vertices the complex roots of </del><math>x^{10}-1</math><del class="diffchange diffchange-inline">, sorted by their arguments, create </del><code>list1 = {ComplexRoot(x^10-1)}</code><del class="diffchange diffchange-inline">, then use the command </del><code>Polygon(Sort(list1, arg(list1)))</code><del class="diffchange diffchange-inline">. This command yields </del>''poly1 = 2.94''<del class="diffchange diffchange-inline">.</del></div>}}</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* <ins class="diffchange diffchange-inline">為了將 </ins><math>x^{10}-1</math> <ins class="diffchange diffchange-inline">的複數根按照幅角(argument)順序作為頂點來畫出多邊形,先建立 </ins><code>list1 = {ComplexRoot(x^10-1)}</code> <ins class="diffchange diffchange-inline">,接著使用指令 </ins><code>Polygon(Sort(list1, arg(list1)))</code> <ins class="diffchange diffchange-inline">產生 </ins>''poly1 = 2.94'' <ins class="diffchange diffchange-inline">。</ins></div>}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{note|<del class="diffchange diffchange-inline">There is a workaround to sort lists of arbitrary objects which is explained in the [</del>[Tutorial:<del class="diffchange diffchange-inline">Advanced List Sorting</del>]<del class="diffchange diffchange-inline">].</del>}}</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{note| <ins class="diffchange diffchange-inline">有一種替代方案能對任意物件的串列進行排序,請參閱教學文件「</ins>[<ins class="diffchange diffchange-inline">https://wiki.geogebra.org/en/</ins>Tutorial:<ins class="diffchange diffchange-inline">Advanced_List_Sorting 進階串列排序(英文)</ins>] <ins class="diffchange diffchange-inline">」。</ins>}}</div></td></tr>
</table>
Nuhero
https://wiki.geogebra.org/s/zh/index.php?title=Sort_%E6%8C%87%E4%BB%A4&diff=6778&oldid=prev
2021年11月11日 (四) 09:08 Nuhero
2021-11-11T09:08:42Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="zh">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">←上一版本</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">2021年11月11日 (四) 09:08的版本</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l6" >第6行:</td>
<td colspan="2" class="diff-lineno">第6行:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* <code>Sort({3, 2, 1})</code> 產生串列 ''{1, 2, 3}''。</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* <code>Sort({3, 2, 1})</code> 產生串列 ''{1, 2, 3}''。</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* <code>Sort({"pears", "apples", "figs"})</code> 以英文字母排序產生一個串列。</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* <code>Sort({"pears", "apples", "figs"})</code> 以英文字母排序產生一個串列。</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* <code>Sort({(3, 2), (2, 5), (4, 1)}) </code> 產生 ''{(2, 5), (3, 2), (4, 1)}''。</div>}}</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* <code>Sort({(3, 2), (2, 5), (4, 1)})</code> 產生 ''{(2, 5), (3, 2), (4, 1)}''。</div>}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>; Sort( <值>, <鍵> ): <值> 串列元素會依據相對應的 <鍵> 串列元素來進行排序。</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>; Sort( <值>, <鍵> ): <值> 串列元素會依據相對應的 <鍵> 串列元素來進行排序。</div></td></tr>
</table>
Nuhero
https://wiki.geogebra.org/s/zh/index.php?title=Sort_%E6%8C%87%E4%BB%A4&diff=6776&oldid=prev
2021年11月11日 (四) 09:07 Nuhero
2021-11-11T09:07:02Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="zh">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">←上一版本</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">2021年11月11日 (四) 09:07的版本</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >第1行:</td>
<td colspan="2" class="diff-lineno">第1行:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><noinclude>{{Manual Page|version=<del class="diffchange diffchange-inline">4</del>.0}}</noinclude>{{command|list|Sort}}</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><noinclude>{{Manual Page|version=<ins class="diffchange diffchange-inline">5</ins>.0}}</noinclude>{{command|list<ins class="diffchange diffchange-inline">}}</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>;Sort<del class="diffchange diffchange-inline">[ </del><<del class="diffchange diffchange-inline">List</del>> <del class="diffchange diffchange-inline">]</del></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">;Sort( &lt;串列> )</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:{{<del class="diffchange diffchange-inline">translate</del>|Sort <del class="diffchange diffchange-inline">Command</del>}}</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:對一個數值、文字或點的 <串列> 進行排序。 </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:{{Note</ins>| <ins class="diffchange diffchange-inline">點串列以 ''x'' 坐標作為排序依據。}} </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:{{Examples|1=<div></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:* <code></ins>Sort<ins class="diffchange diffchange-inline">({3, 2, 1</ins>}<ins class="diffchange diffchange-inline">)</code> 產生串列 ''{1, 2, 3</ins>}<ins class="diffchange diffchange-inline">''。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:* <code>Sort({"pears", "apples", "figs"})</code> 以英文字母排序產生一個串列。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:* <code>Sort({(3, 2), (2, 5), (4, 1)}) </code> 產生 ''{(2, 5), (3, 2), (4, 1)}''。</div>}}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>; Sort<ins class="diffchange diffchange-inline">( <值>, <鍵> ): <值> 串列元素會依據相對應的 </ins>< <ins class="diffchange diffchange-inline">鍵</ins>> <ins class="diffchange diffchange-inline">串列元素來進行排序。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:{{<ins class="diffchange diffchange-inline">Examples</ins>|<ins class="diffchange diffchange-inline">1=<div></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:* In order to sort a list of polynomials <code>list1 = {x^3, x^2, x^6}</code> according to degree, create the dependent list of degrees <code>list2 = Zip(Degree(a), a, list1)</code>. After that, <code> Sort(list1, list2)</code> yields the requested ''list3 = {x^2, x^3, x^6}''.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">:* In order to draw the polygon having as vertices the complex roots of <math>x^{10}-1</math>, sorted by their arguments, create <code>list1 = {ComplexRoot(x^10-1)}</code>, then use the command <code>Polygon(</ins>Sort<ins class="diffchange diffchange-inline">(list1, arg(list1)))</code>. This command yields ''poly1 = 2.94''.</div>}}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">{{note|There is a workaround to sort lists of arbitrary objects which is explained in the [[Tutorial:Advanced List Sorting]].</ins>}}</div></td></tr>
</table>
Nuhero
https://wiki.geogebra.org/s/zh/index.php?title=Sort_%E6%8C%87%E4%BB%A4&diff=225&oldid=prev
Zbynek:Autogenerated from properties
2011-03-23T23:56:16Z
<p>Autogenerated from properties</p>
<p><b>新页面</b></p><div><noinclude>{{Manual Page|version=4.0}}</noinclude>{{command|list|Sort}}<br />
;Sort[ <List> ]<br />
:{{translate|Sort Command}}</div>
Zbynek