How do I change the order in which grep looks at files/prints results?

Solution 1:

ls * | sort -n | xargs -d '\n' grep hello