- Added sort_namespaces twig filter.
- The sort twig tag has been deprecated in favor of a sort_namespaces twig filter.
Before:
{% sort %}
use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Component\Utility\Random;
{% endsort %}
After:
{% apply sort_namespaces %}
use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Component\Utility\Random;
{% endapply %}