Help:Sorting/ja

多くの場合、ページ タイトルまたはユーザー名のリストは、MediaWiki によってアルファベット順に並べ替えられます. JavaScript を使用して、ページ テキストに含まれるデータのリストを並べ替えることもできます.



並べ替え順
When lists are sorted alphabetically by MediaWiki, the order of characters is sorted with. This sorts accented characters correctly based on.

Android Webviews don't support this, so fallback to the old sort routine is required. The order is the same as the order of Unicode code points. Some of the more common characters are ordered as follows (in ascending order):

{{Legend|#eee|ISO basic Latin alphabet}} {{Legend|#cee|Greek alphabet}} {{Legend|#eec|Russian Cyrillic alphabet}}

カテゴリ
Categories are sorted differently from other lists. The exact order depends on the configuration of the wiki, via. The default since MediaWiki 1.17 is the Unicode code point order as above, but with all the lowercase letters turned into uppercase letters. More complex orderings are possible.

Sorting rows of a table
When a list of entries is included in a table on a page, you can use JavaScript to make the table sortable. To do this, add the " " class to the table declaration and make sure you defined headers using exclamations marks:

Which produces the following output:

By clicking on the buttons in the cell headers, the entries can be sorted by the value in that column, in either ascending or descending order.

Known issues

 * - It's not possible to set an initial sort preference. See T33332 for details.

Specifying a sort key
Depending on the wiki,  can be used to specify a sort key.

Example:

gives:

Sorting in categories
Pages in categories are sorted by their title. This can be overridden by a sort key, see Help:Categories#Sort key.



関連項目

 * For a full documentation, see Help:Sorting on Meta-Wiki.
 * For much more detailed instructions, see the Wikipedia page.
 * – Allows you to change the collation used for categories (requires shell access).
 * Unicode character references on the Wikibooks.
 * Initial characters