svn: /phpdoc/ja/trunk/reference/array/functions/ sort.xml
| From: | Yoshinari Takaoka | Date: | Fri, 20 Dec 2019 00:35:45 +0000 |
| Subject: | svn: /phpdoc/ja/trunk/reference/array/functions/ sort.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-5197@lists.php.net to get a copy of this message | ||
mumumu Fri, 20 Dec 2019 00:35:45 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=348615
Log:
Fix #78992: Strange behavior of SORT_REGULAR insufficiently documented
Bug: https://bugs.php.net/78992 (Verified) Strange behavior
of SORT_REGULAR insufficiently documented
Bug: https://bugs.php.net/78992 (Closed) Strange behavior
of SORT_REGULAR insufficiently documented
Changed paths:
U phpdoc/ja/trunk/reference/array/functions/sort.xml
Modified: phpdoc/ja/trunk/reference/array/functions/sort.xml
===================================================================
--- phpdoc/ja/trunk/reference/array/functions/sort.xml 2019-12-20 00:15:12 UTC (rev 348614)
+++ phpdoc/ja/trunk/reference/array/functions/sort.xml 2019-12-20 00:35:45 UTC (rev 348615)
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 344469 Maintainer: takagi Status: ready -->
-<!-- CREDITS: hirokawa,shimooka -->
+<!-- EN-Revision: 348593 Maintainer: takagi Status: ready -->
+<!-- CREDITS: hirokawa,shimooka,mumumu -->
+
<refentry xml:id="function.sort" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>sort</refname>
@@ -43,8 +44,10 @@
ソート型のフラグ:
<itemizedlist>
<listitem>
- <simpara><constant>SORT_REGULAR</constant> -
通常通りに項目を比較
- (型は変更しません)</simpara>
+ <simpara><constant>SORT_REGULAR</constant> -
通常通りに項目を比較;
+ 比較の詳細は <link
+ linkend="language.operators.comparison">比較演算子</link>
+ で説明されています。</simpara>
</listitem>
<listitem>
<simpara><constant>SORT_NUMERIC</constant> -
数値的に項目を比較</simpara>
@@ -193,8 +196,10 @@
</note>
<warning>
<simpara>
+ <parameter>sort_flags</parameter> が
+ <constant>SORT_REGULAR</constant>の場合に
複数の型が混在する配列をソートする場合には、注意してください。
- <function>sort</function>
が予測不可能な結果を出力することがあります。
+ <function>sort</function>
が期待しない結果を出力することがあります。
</simpara>
</warning>
</refsect1>