added sorting to globs