@@ -112,7 +112,9 @@ pickTasksQuery tasks limitCount = do
112112 ( from (table #tasks)
113113 & where_ (#task `in_` (literal <$> tasks))
114114 & where_ (not_ . notNull $ #started)
115+ & orderBy [#creation_time & Asc]
115116 & limit limitCount
117+ & orderBy [#creation_time & Desc]
116118 )
117119 startedMan :: Manipulation_ Schema (String, Jsonb Value) ()
118120 startedMan =