diff --git a/www/src/App.elm b/www/src/App.elm index 86f3939..a91d379 100644 --- a/www/src/App.elm +++ b/www/src/App.elm @@ -193,7 +193,7 @@ criteriaFromUrl : Url.Url -> Criteria criteriaFromUrl url = let emptyCriteria = - { query = "", sortBy = "rarity", ownedOnly = True } + { query = "", sortBy = "price", ownedOnly = True } in Url.Parser.parse parseUrl url |> Maybe.withDefault emptyCriteria @@ -431,16 +431,10 @@ searchBar model = , selected = Just model.criteria.sortBy , label = Input.labelLeft [ Font.color colors.text ] (E.text "Sort by") , options = - [ Input.option "rarity" <| E.el [ Font.color colors.text ] <| E.text "Rarity DESC" - , Input.option "price" <| E.el [ Font.color colors.text ] <| E.text "Price DESC" + [ Input.option "price" <| E.el [ Font.color colors.text ] <| E.text "Price DESC" + , Input.option "rarity" <| E.el [ Font.color colors.text ] <| E.text "Rarity DESC" ] } - , Input.checkbox [] - { onChange = UpdateCriteria << UpdateOwnedOnly - , icon = Input.defaultCheckbox - , checked = model.criteria.ownedOnly - , label = Input.labelRight [ Font.color colors.text ] (E.text "Owned only?") - } ] ]