Fix column sorting & put helpers in app controller