Fixed so that sorting is performed in a case insensitive manner