You are here

function twig_sort_filter in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Extension/Core.php \twig_sort_filter()

Sorts an array.

Parameters

array $array An array:

1 string reference to 'twig_sort_filter'
Twig_Extension_Core::getFilters in vendor/Twig/Extension/Core.php
Returns a list of filters to add to the existing list.

File

vendor/Twig/Extension/Core.php, line 922

Code

function twig_sort_filter($array) {
  asort($array);
  return $array;
}