```
class col2 col3 col4 col5
1     4    5    5    5
4     4    4.5  5.5  6
1     3.5  5    6    4.5
3     3    4    4    4
2     3    3.5  3.8  6.1

```

I have used hypothetical data in the example. The shape of the real DataFrame is 6680x1900. I have clustered these data into `50` labeled classes (1 to 50). How can I sort this data in ascending order of `class` labels?

I have tried:

```
df.groupby([column_name_lst])["class"]

```

But it fails with this error:

> 
> TypeError: You have to supply one of 'by' and 'level'
> 
> 
> 

How to solve this problem? Expected output is:

```
class col2 col3 col4 col5
1     4    5    5    5
1     3.5  5    6    4.5
2     3    3.5  3.8  6.1
3     3    4    4    4
4     4    4.5  5.5  6

```