Skip to content

Commit

Permalink
set referenced array for sort function
Browse files Browse the repository at this point in the history
  • Loading branch information
florianajir committed Mar 10, 2016
1 parent b5e3830 commit f707d66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Manager/RecordsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private function matchToSearch(Search $search, $line)
*
* @return array
*/
private function sortLocalData(array $parsed, Search $search)
private function sortLocalData(array &$parsed, Search $search)
{
$sortKey = $search->getSort();
if (!empty($sortKey)) {
Expand All @@ -184,7 +184,6 @@ private function sortLocalData(array $parsed, Search $search)
return strnatcmp($elt1[$key], $elt2[$key]);
};
};

usort($parsed, $sorter($sortKey));
}

Expand Down

0 comments on commit f707d66

Please sign in to comment.