svn: /phpdoc/pt_BR/trunk/reference/array/ sorting.xml
| From: | Thiago Henrique Pojda | Date: | Fri, 06 Jan 2012 02:15:50 +0000 |
| Subject: | svn: /phpdoc/pt_BR/trunk/reference/array/ sorting.xml | ||
| Groups: | php.doc.pt-br | ||
| Request: | Send a blank email to doc-pt-br+get-3874@lists.php.net to get a copy of this message | ||
thiago Fri, 06 Jan 2012 02:15:50 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321811
Log:
+ First translated version
Changed paths:
U phpdoc/pt_BR/trunk/reference/array/sorting.xml
Modified: phpdoc/pt_BR/trunk/reference/array/sorting.xml
===================================================================
--- phpdoc/pt_BR/trunk/reference/array/sorting.xml 2012-01-05 20:32:03 UTC (rev 321810)
+++ phpdoc/pt_BR/trunk/reference/array/sorting.xml 2012-01-06 02:15:50 UTC (rev 321811)
@@ -2,142 +2,142 @@
<!-- EN-Revision: 290982 Maintainer: thiago Status: ready -->
<chapter xml:id="array.sorting" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
- <title>Sorting Arrays</title>
+ <title>Ordenando Arrays</title>
<para>
- PHP has several functions that deal with sorting arrays, and this
- document exists to help sort it all out.
+ O PHP tem muitas funções para lidar com ordenação de arrays, e esse
+ documento existe para ajudar a você lidar com elas.
</para>
<para>
- The main differences are:
+ As principais diferenças são:
</para>
<para>
<simplelist>
<member>
- Some sort based on the <type>array</type> keys, whereas others by
- the values: <literal>$array['key'] = 'value';</literal>
+ Algumas ordenam com base nas chaves do <type>array</type>, enquanto outras
+ pelos valores: <literal>$array['chave'] = 'valor';</literal>
</member>
<member>
- Whether or not the correlation between the keys and values are
- maintained after the sort, which may mean the keys are reset
- numerically (0,1,2 ...)
+ A correlação entre as chaves e os valores do array não são mantidas depois
+ da ordenação, o que pode fazer com que as chaves sejam resetadas
+ numericamente (0, 1, 2, ...)
</member>
<member>
- The order of the sort: alphabetical, low to high (ascending),
- high to low (descending), numerical, natural, random, or user defined
+ A ordem da ordenação: alfabética, menor para maior (ascendente), maior para menor
+ (descendente), numérica, natural, aleatório, ou definida pelo usuário
</member>
<member>
- Note: All of these sort functions act directly on the array
- variable itself, as opposed to returning a new sorted array
+ Nota: Todas essas funções agem diretamente na própria variável do array,
+ ao invés de retornar um novo array ordenado
</member>
<member>
- If any of these sort functions evaluates two members as equal then the
- order is undefined (the sorting is not stable).
+ Se qualquer uma dessas funções avaliar dois membros como iguais então a ordem
+ será indefinida (a ordenação não é estável).
</member>
</simplelist>
</para>
<para>
<table>
- <title>Sorting function attributes</title>
+ <title>Atributos das funções de ordenação</title>
<tgroup cols="5">
<thead>
<row>
- <entry>Function name</entry>
- <entry>Sorts by</entry>
- <entry>Maintains key association</entry>
- <entry>Order of sort</entry>
- <entry>Related functions</entry>
+ <entry>Nome da função</entry>
+ <entry>Ordena por</entry>
+ <entry>Mantém a associação de chaves</entry>
+ <entry>Ordem da ordenação</entry>
+ <entry>Funções relacionadas</entry>
</row>
</thead>
<tbody>
<row>
<entry><function>array_multisort</function></entry>
- <entry>value</entry>
- <entry>associative yes, numeric no</entry>
- <entry>first array or sort options</entry>
+ <entry>valor</entry>
+ <entry>associativo sim, numérico não</entry>
+ <entry>primeiro array ou opções de ordenação</entry>
<entry><function>array_walk</function></entry>
</row>
<row>
<entry><function>asort</function></entry>
- <entry>value</entry>
- <entry>yes</entry>
- <entry>low to high</entry>
+ <entry>valor</entry>
+ <entry>sim</entry>
+ <entry>menor para maior</entry>
<entry><function>arsort</function></entry>
</row>
<row>
<entry><function>arsort</function></entry>
- <entry>value</entry>
- <entry>yes</entry>
- <entry>high to low</entry>
+ <entry>valor</entry>
+ <entry>sim</entry>
+ <entry>maior para menor</entry>
<entry><function>asort</function></entry>
</row>
<row>
<entry><function>krsort</function></entry>
- <entry>key</entry>
- <entry>yes</entry>
- <entry>high to low</entry>
+ <entry>chave</entry>
+ <entry>sim</entry>
+ <entry>maior para menor</entry>
<entry><function>ksort</function></entry>
</row>
<row>
<entry><function>ksort</function></entry>
- <entry>key</entry>
- <entry>yes</entry>
- <entry>low to high</entry>
+ <entry>chave</entry>
+ <entry>sim</entry>
+ <entry>menor para maior</entry>
<entry><function>asort</function></entry>
</row>
<row>
<entry><function>natcasesort</function></entry>
- <entry>value</entry>
- <entry>yes</entry>
- <entry>natural, case insensitive</entry>
+ <entry>valor</entry>
+ <entry>sim</entry>
+ <entry>natural, não sensível a maiúsculas</entry>
<entry><function>natsort</function></entry>
</row>
<row>
<entry><function>natsort</function></entry>
- <entry>value</entry>
- <entry>yes</entry>
+ <entry>valor</entry>
+ <entry>sim</entry>
<entry>natural</entry>
<entry><function>natcasesort</function></entry>
</row>
<row>
<entry><function>rsort</function></entry>
- <entry>value</entry>
- <entry>no</entry>
- <entry>high to low</entry>
+ <entry>valor</entry>
+ <entry>não</entry>
+ <entry>maior para menor</entry>
<entry><function>sort</function></entry>
</row>
<row>
<entry><function>shuffle</function></entry>
- <entry>value</entry>
- <entry>no</entry>
+ <entry>valor</entry>
+ <entry>não</entry>
<entry>random</entry>
<entry><function>array_rand</function></entry>
</row>
<row>
<entry><function>sort</function></entry>
- <entry>value</entry>
- <entry>no</entry>
- <entry>low to high</entry>
+ <entry>valor</entry>
+ <entry>não</entry>
+ <entry>menor para maior</entry>
<entry><function>rsort</function></entry>
</row>
<row>
<entry><function>uasort</function></entry>
- <entry>value</entry>
- <entry>yes</entry>
- <entry>user defined</entry>
+ <entry>valor</entry>
+ <entry>sim</entry>
+ <entry>definido pelo usuário</entry>
<entry><function>uksort</function></entry>
</row>
<row>
<entry><function>uksort</function></entry>
- <entry>key</entry>
- <entry>yes</entry>
- <entry>user defined</entry>
+ <entry>chave</entry>
+ <entry>sim</entry>
+ <entry>definido pelo usuário</entry>
<entry><function>uasort</function></entry>
</row>
<row>
<entry><function>usort</function></entry>
- <entry>value</entry>
- <entry>no</entry>
- <entry>user defined</entry>
+ <entry>valor</entry>
+ <entry>não</entry>
+ <entry>definido pelo usuário</entry>
<entry><function>uasort</function></entry>
</row>
</tbody>