From 1644ce10159c51d71aca8e85a3a60db962d77669 Mon Sep 17 00:00:00 2001 From: Andrei Date: Sun, 25 May 2025 15:43:41 +0300 Subject: [PATCH] Update ndjson.sh ndjson.sh - added file sorting --- scripts/ndjson.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ndjson.sh b/scripts/ndjson.sh index 7b67fe0..d1c81ec 100755 --- a/scripts/ndjson.sh +++ b/scripts/ndjson.sh @@ -87,7 +87,7 @@ if [[ ! -d "$dir" ]]; then exit 1 fi -mapfile -d $'\0' images < <(find "$dir/" -maxdepth 1 -type f -name "*.$extension" -print0) +mapfile -d $'\0' images < <(find "$dir/" -maxdepth 1 -type f -name "*.$extension" -print0 | sort -z -V) totalFrames="${#images[@]}" echo "Total frames: $totalFrames"