* expands to the files sorted lexically by name under your current locale settings. If you want to sort them elsewise, you have to use something besides a wildcard. Easiest is probably to ask
ls for them in the order you want;
-t sorts by date, defaulting to newest first; adding
-r switches to oldest first:
by_date=(${(f)"$(ls -1tr)"})
for aa in $by_date; do
You can add -a to include hidden files, or -A to include hidden files other than "." and "..". Add -u to use time of last access instead of last modification.
FWIW, in your example code, it's more efficient if you redirect the entire loop instead of doing individual appends per-file:
for aa in whatever; do cat $aa; done >>$output
and if you're really doing cat, you don't need the loop at all.
cat * >>$output
cat $by_date >>$output
But all of the above mechanisms including the for loop expand all the filenames into a single shell command line, and so have limits on how big that expanded list can be. It's a large limit you are unlikely to run into in everyday circumstances, but as someone who remembers when all of cnn.com's weather data was stuffed into a single flat directory on the web server, I figure it's worth mentioning. xargs, which will break up giant lists into smaller chunks, is a good way around such limits:
ls -1 | xargs cat >>contents-by-name
ls -1tr | xargs cat >>contents-by-modification_date
ls -1utr | xargs cat >>contents-by-access-date