# arrlist\_multisort()
## arrlist\_multisort()
```
<pre class="calibre11">```
arrlist_multisort($arrlist, $col, $asc = TRUE)
```
```
#### 【功能】
对二维的关联数组进行排序。
一般应用在对从数据库中取出来的二维数组进行排序。
#### 【参数】
```
<pre class="calibre11">```
$arrlist:二维关联数组
$col:排序的列
$asc:是否为升序,TRUE:升序;FALSE:倒序
```
```
#### 【用例】
```
<pre class="calibre11">```
<?php
$conf = include './conf.php';
include './xiunophp/xiunophp.php';
$data = array();
$data[] = array('volume' => 67, 'edition' => 2);
$data[] = array('volume' => 86, 'edition' => 1);
$data[] = array('volume' => 85, 'edition' => 6);
$data[] = array('volume' => 98, 'edition' => 2);
$data[] = array('volume' => 86, 'edition' => 6);
$data[] = array('volume' => 67, 'edition' => 7);
$r = arrlist_multisort($data, 'edition', TRUE);
print_r($r);
/* 结果:
Array
(
[0] => Array
(
[volume] => 86
[edition] => 1
)
[1] => Array
(
[volume] => 67
[edition] => 2
)
[2] => Array
(
[volume] => 98
[edition] => 2
)
[3] => Array
(
[volume] => 85
[edition] => 6
)
[4] => Array
(
[volume] => 86
[edition] => 6
)
[5] => Array
(
[volume] => 67
[edition] => 7
)
)
*/
?>
?>
```
```
- XiunoPHP 入门
- 什么是 XiunoPHP?
- 关于 URL 格式
- 编码规范
- 全局变量
- $starttime
- $time
- $conf
- $ip
- $longip
- $ajax
- $method
- $db
- $cache
- $errno
- $errstr
- 数据库函数
- DB 配置
- db_insert()
- db_create()
- db_replace()
- db_update()
- db_delete()
- db_find_one()
- db_find()
- db_count()
- db_maxid()
- db_connect()
- db_truncate()
- db_sql_find()
- db_sql_find_one()
- db_exec()
- db_new()
- db_close()
- 缓存函数
- CACHE 配置
- cache_set()
- cache_get()
- cache_delete()
- cache_truncate()
- cache_new()
- 数组增强
- array_value()
- array_filter_empty()
- array_addslashes()
- array_stripslashes()
- array_htmlspecialchars()
- array_trim()
- array_diff_value()
- array_assoc_slice()
- arrlist_multisort()
- arrlist_cond_orderby()
- arrlist_key_values()
- arrlist_values()
- arrlist_change_key()
- arrlist_chunk()
- 杂项函数
- xn_strlen()
- xn_substr()
- xn_urlencode()
- xn_urldecode()
- xn_json_encode()
- xn_json_decode()
- xn_encrypt()
- xn_decrypt()
- xn_message()
- xn_error()
- xn_log()
- xn_txt_to_html()
- xn_rand()
- xn_is_writable()
- humandate()
- humannumber()
- humansize()
- param()
- lang()
- url()
- pagination()
- is_robot()
- http_get()
- http_post()
- https_get()
- https_post()
- http_multi_get()
- file_replace_var()
- file_get_contents_try()
- file_put_contents_try()
- in_string()
- file_ext()
- file_pre()
- file_name()
- http_url_path()
- glob_recursive()
- rmdir_recusive()
- copy_recusive()
- _GET() _POST() _COOKIE() ...