fixed sorting method to sort not case senstive