When you're analyzing complex data sets in Google Sheets, you can take advantage of the built-in sorting feature to organize your data. You can sort by individual columns, or, for more complex data, you can sort by multiple columns.

To do this, you will need to open your Google Sheets spreadsheet and select the data set you want to sort. You can do this manually by selecting the cells using your mouse or by selecting one of the cells in your data set and pressing Ctrl + A.
Once your data is selected, click Data > Sort Range from the Google Sheets menu.

In the “Sort Range” selection box, you can choose how you want to sort your data.
You can select the column to sort by, as well as whether to sort in ascending or descending order. Click on “Data Has Header Row” to be able to select columns from the “header cell”.

By default, Google Sheets will only offer one column for sorting. To add multiple columns to your sorting options, select the “Add Another Sort Column” button.

When you sort by multiple columns in Google Sheets, the sorting will be done from top to bottom. For example, an example spreadsheet has product sales data with product names, sale dates, and prices.
If you wanted to sort this data by name and then by the amount sold, you would first select the product name column in column A (named “Product”) and second the amount sold in column C (named “Price”).

You can sort it in ascending order, starting with product names near the beginning of the alphabet at the top, and then with prices sorted by the smallest amount. Select “AZ” to sort this way, or “ZA” to sort in descending order.
You can also mix and match these options. For this example, you can sort product names in ascending order and sales amounts in descending order.

Once the sorting options are set, select the “Sort” button to sort your data. The data in your spreadsheet will be rearranged according to the rules defined in the “Sort Range” options box.

You can undo any of these sorts by running another sort on your dataset, by clicking the “Undo” button in the menu bar, or by pressing Ctrl + Z on your keyboard.
