芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/www/itrema/wp-content/plugins/wp-table-reloaded/classes/arraysort.class.php
input_array = $array; $this->column = $column; $this->order = $order; if ( !empty ($array) && -1 != $column ) $this->sort(); } function compare_rows( $a, $b ) { if ( -1 == $this->column ) return 0; return strnatcasecmp( $a[ $this->column ], $b[ $this->column ] ); } function sort() { $array_to_sort = $this->input_array; if ( usort( $array_to_sort, array( &$this, 'compare_rows' ) ) ) { $this->sorted_array = ( 'DESC' == $this->order ) ? array_reverse( $array_to_sort ) : $array_to_sort; } else { $this->sorted_array = $this->input_array; $this->error = true; } } } ?>