Sort array before passing to views