improve glob-* handling, but don't over-sort