mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +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 = [
|
||||
$response,
|
||||
$sortDirection1,
|
||||
$sortOrder1
|
||||
&$sortOrder1,
|
||||
&$sortDirection1
|
||||
];
|
||||
|
||||
if ($sortDirection2) {
|
||||
$arguments[] = $sortDirection2;
|
||||
$arguments[] = $sortOrder2;
|
||||
$arguments[] = $sortDirection2;
|
||||
}
|
||||
|
||||
if ($sortDirection3) {
|
||||
$arguments[] = $sortDirection3;
|
||||
$arguments[] = $sortOrder3;
|
||||
$arguments[] = $sortDirection3;
|
||||
}
|
||||
|
||||
$arguments[] = &$response;
|
||||
|
||||
call_user_func_array('array_multisort', $arguments);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue