PHP Classes

File: libs/Twig/doc/filters/sort.rst

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/doc/filters/sort.rst   Download  
File: libs/Twig/doc/filters/sort.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 275 bytes
 

Contents

Class file image Download
``sort`` ======== The ``sort`` filter sorts an array: .. code-block:: jinja {% for user in users|sort %} ... {% endfor %} .. note:: Internally, Twig uses the PHP `asort`_ function to maintain index association. .. _`asort`: http://php.net/asort