change sort method

changed the sort method so that it's case-insensitive