   (let [lookup-fn #(pstore/lookup pstore tenant leafs-only limit-depth %
                                   exclude-paths)
         sidefx-wrapper (if sidefx-fn #(do (sidefx-fn %) %) #(do %))
-        sort (get-sort-or-not-fn sort-paths?)]
+        sort (get-sort-or-dummy-fn sort-paths?)]
     (sort (map :path (map sidefx-wrapper (flatten (map lookup-fn paths)))))))
 
 (defn- get-paths

        from (timec/to-epoch (time/minus (time/now) (time/seconds threshold)))
        title "Checking metrics"
        paths-rollups (combine-paths-rollups paths [(first rollups)])
        sort (get-sort-or-not-fn (:sort options))]
    (prog/set-progress-bar!
     "[:bar] :percent :done/:total Elapsed :elapseds ETA :etas")
    (prog/config-progress-bar! :width pbar-width)

  []
  (swap! inspecting? (fn [_] true)))

(defn- get-sort-or-dummy-fn
  "Get sort or dummy function."
  [sort?]
  (if sort? sort #(do %)))
