We rely on the order of repositories when we set current repo on the main page. That's why we need to do sorting in the controller.