Lift view and sort to App controller

Fix #1123