Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Widget/Controller/WidgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,6 @@ private function getWidget(WidgetPageInterface $widgetPage, $widgetId)
public function getRegionAutocompleteResult(Request $request, $searchString, $language = 'nl')
{
$matches = $this->regionService->getAutocompletResults($searchString, $language);
// Sort the matches on nis which was added as key of the matches array.
ksort($matches);

// Return 10 matches
$response = new JsonResponse(array_slice($matches, 0, 10));
Expand Down