If needed, show the Navigation Pane by clicking the button over the left that appears as three bars. By default, the value from the heading isn't included in the sort Procedure. At times, you might need to turn the heading on or off so that the value inside the heading https://www.customguide.com/google-docs/how-to-make-a-table-in-google-docs