sort filenames not bytes when building bazel

this removes ~4s of build time on my machine.

Closes #8926.

PiperOrigin-RevId: 258778774
diff --git a/src/BUILD b/src/BUILD
index 12a1d8d..63a2c7e 100644
--- a/src/BUILD
+++ b/src/BUILD
@@ -5,7 +5,7 @@
 
 exports_files(["jdeps_modules.golden"])
 
-md5_cmd = "set -e -o pipefail && cat $(SRCS) | sort | %s | awk '{ print $$1; }' > $@"
+md5_cmd = "set -e -o pipefail && echo $(SRCS) | sort | xargs cat | %s | awk '{ print $$1; }' > $@"
 
 # TODO(bazel-team): find a better way to handle dylib extensions.
 filegroup(