mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 17:33:19 +03:00
Implemented sort processor.
This commit is contained in:
parent
520b8d75e0
commit
f99d729830
1 changed files with 6 additions and 5 deletions
|
@ -53,21 +53,22 @@ class Sort implements ProcessorsInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
$arguments = [
|
$arguments = [
|
||||||
$response,
|
&$sortOrder1,
|
||||||
$sortDirection1,
|
&$sortDirection1
|
||||||
$sortOrder1
|
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($sortDirection2) {
|
if ($sortDirection2) {
|
||||||
$arguments[] = $sortDirection2;
|
|
||||||
$arguments[] = $sortOrder2;
|
$arguments[] = $sortOrder2;
|
||||||
|
$arguments[] = $sortDirection2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($sortDirection3) {
|
if ($sortDirection3) {
|
||||||
$arguments[] = $sortDirection3;
|
|
||||||
$arguments[] = $sortOrder3;
|
$arguments[] = $sortOrder3;
|
||||||
|
$arguments[] = $sortDirection3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$arguments[] = &$response;
|
||||||
|
|
||||||
call_user_func_array('array_multisort', $arguments);
|
call_user_func_array('array_multisort', $arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue