File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -20,21 +20,21 @@ function array_except_value(array $array, $value)
2020if (!function_exists ('multiarray_sort_by ' )) {
2121 function multiarray_sort_by (array $ array , $ field1 = null , $ sort1 = null , $ _ = null )
2222 {
23- $ args = func_get_args ();
23+ $ arguments = func_get_args ();
2424
25- $ data = array_shift ($ args );
26- foreach ($ args as $ argKey => $ argValue ) {
25+ $ multiarray = array_shift ($ arguments );
26+ foreach ($ arguments as $ argKey => $ argValue ) {
2727 if (is_string ($ argValue )) {
2828 $ column = [];
29- foreach ($ data as $ key => $ item ) {
29+ foreach ($ multiarray as $ key => $ item ) {
3030 $ column [$ key ] = $ item [$ argValue ];
3131 }
32- $ args [$ argKey ] = $ column ;
32+ $ arguments [$ argKey ] = $ column ;
3333 }
3434 }
35- $ args [] = &$ data ;
36- call_user_func_array ('array_multisort ' , $ args );
35+ $ arguments [] = &$ multiarray ;
36+ call_user_func_array ('array_multisort ' , $ arguments );
3737
38- return array_pop ($ args );
38+ return array_pop ($ arguments );
3939 }
4040}
You can’t perform that action at this time.
0 commit comments