fabpot/Twig — Issue #510: reverse filter should add a parameter to preserve keys
Author: lomboo
Created: 2011-11-08 18:56:39+00:00
State: open

[array_reverse] (http://php.net/manual/en/function.array-reverse.php) receives the array and a $preserve_keys flag.

Currently there is no way to set the $preserve_keys flag on the Twig reverse filter.