Patch Hierarchical taxonomy to sort also by name if term depth is equal

#2927 

Oh, seems I forgot to actually make a PR from the branch. here it is :)