Fixes failed test where Dir.glob returns arrays that are sorted differently.