Make sort order for Utility::{Glob,GlobRecursive} deterministic.

Fixes #5854