SharePoint 2013 - Group By Content-Type in SharePoint list view

Group By 'Content-Type' field in SharePoint listScenario: I have a SharePoint list with two Content Type eg: Item and Announcement,
Group By 'Content Type' in SharePoint list
I need to display the view grouped by the Content-Type field as shown below:
Group By 'Content-Type' field in SharePoint list
I tried to modify the view.
Modify ViewBut unfortunately, There is no field called Content Type in Group By section as shown below.Group By in list viewSolution:
  • Modify your view > In the group by section, > select any field like Title.
  • Open SharePoint Designer > From the left menue > Select List & Library > Click on your List .
Group By 'Content-Type' field in SharePoint list
  • In View Section, Click on your view to edit it.
Group By 'Content-Type' field in SharePoint list
  • Search for a .
View section in SharePoint Designer
  • Scroll horizontally till get the tag as shown below.
Group By 'Content-Type' field in SharePoint list
  • In tag, Change the Name of from Title to ContentType.
Group By 'Content-Type' field in SharePoint list
  • Save.
  • Open your view, It should be now grouped by Content type.
Group By 'Content-Type' field in SharePoint list