fixed order of tag media

This commit is contained in:
nek0 2014-12-19 22:37:32 +01:00
parent 038e4a3399
commit b8e8a0c334

View file

@ -6,7 +6,7 @@ import Data.Maybe
getTagR :: Text -> Handler Html
getTagR tag = do
tempMedia <- runDB $ selectList [] [Asc MediumTitle]
tempMedia <- runDB $ selectList [] [Desc MediumTitle]
almostMedia <- mapM (\a -> do
case tag `elem` (mediumTags $ entityVal a) of
True -> return (Just a)