diff --git a/contrib/clojure-package/examples/infer/imageclassifier/src/infer/imageclassifier_example.clj b/contrib/clojure-package/examples/infer/imageclassifier/src/infer/imageclassifier_example.clj index 6994b4fadc26..bc8b82e1ece1 100644 --- a/contrib/clojure-package/examples/infer/imageclassifier/src/infer/imageclassifier_example.clj +++ b/contrib/clojure-package/examples/infer/imageclassifier/src/infer/imageclassifier_example.clj @@ -74,6 +74,8 @@ image-file-batches (->> input-dir io/file file-seq + sort + reverse (filter #(.isFile %)) (filter #(re-matches #".*\.jpg$" (.getPath %))) (mapv #(.getPath %))