Fix action sorting bug

Introduced in 810d07ce2df80faaf1c5a9665cb6d5f6d09f6d55 when refactoring
the views to use functions.render.php

Thanks to DoyceT for finding this.