added sort for glob