better article ordering
This commit is contained in:
parent
41f0d3ccc1
commit
588b868841
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ getSelectR uId = do
|
||||||
case mUser of
|
case mUser of
|
||||||
Just user -> do
|
Just user -> do
|
||||||
master <- getYesod
|
master <- getYesod
|
||||||
beverages <- runDB $ selectList [BeverageAmount >=. 0] [Desc BeverageIdent]
|
beverages <- runDB $ selectList [BeverageAmount >. 0] [Asc BeverageIdent]
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
$(widgetFile "select")
|
$(widgetFile "select")
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
|
@ -20,7 +20,7 @@ getSelectR uId = do
|
||||||
|
|
||||||
getSelectCashR :: Handler Html
|
getSelectCashR :: Handler Html
|
||||||
getSelectCashR = do
|
getSelectCashR = do
|
||||||
beverages <- runDB $ selectList [BeverageAmount >=. 0] [Desc BeverageIdent]
|
beverages <- runDB $ selectList [BeverageAmount >. 0] [Asc BeverageIdent]
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
$(widgetFile "selectCash")
|
$(widgetFile "selectCash")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue