From dd314b10ef0a8e42dff280229deb85bfbc11110f Mon Sep 17 00:00:00 2001 From: finnhodgkin Date: Tue, 19 Sep 2017 23:11:05 +0100 Subject: [PATCH] fixes default sort-by that was broken after the no-label issues and label filtering branches were merged. #235 --- web/controllers/page_controller.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/controllers/page_controller.ex b/web/controllers/page_controller.ex index 2e0f296..72577c3 100644 --- a/web/controllers/page_controller.ex +++ b/web/controllers/page_controller.ex @@ -12,11 +12,11 @@ defmodule Tudo.PageController do params["rummage"] ) + initial_rummage = IssueSorting.default_sort_by(initial_rummage) + {issues, rummage} = IssueSorting.collect_issues(search_params, initial_rummage) - rummage = IssueSorting.default_sort_by(rummage) - render conn, "index.html", issues: issues,