   `assortment` for more info)
 
   Returns a boot `with-pre-wrap` result"
-  [{{:keys [comparator filterer sortby meta renderer] :as options*} :options
-    :keys [task-name tracer grouper]}]
+  [{:keys [task-name comparator filterer sortby grouper meta renderer tracer] :as options*}]
   (cond (not (fn? comparator))
         (u/fail (str task-name " task :comparator option should implement Fn\n"))
         (not (ifn? filterer))

                       (map-indexed #(-> [(str prefix (inc %1) ".html")
                                          {:entry {:page (inc %1)}
                                           :entries %2}]))
                       (into {})))]
    (assortment-pre-wrap {:task-name "paginate"
                          :tracer :io.perun/paginate
                          :grouper grouper
                          :options options})))

(def +inject-scripts-defaults+
  {:extensions [".html"]})

   s sortby     SORTBY     code  "sort entries by function"
   c comparator COMPARATOR code  "sort by comparator function"
   m meta       META       edn   "metadata to set on each collection entry"]
  (let [options (merge +assortment-defaults+
                       *opts*
                       {:task-name "assortment"
                        :tracer :io.perun/assortment
                        :grouper (or grouper #(-> {"index.html" {:entries %}}))})]
    (assortment-pre-wrap options)))

(def ^:private +collection-defaults+
  {:out-dir "public"
