I have a dataframe like below -

```
+----------+-------+-------------------------------------------------+
| WindowID | State |                                         Details |
+----------+-------+-------------------------------------------------+
|        6 |    SD | [[29916,3], [156570,4], [245934,1], [329748,8]] |
|        3 |    CO |              [[524586,2], [1548,3], [527220,1]] |
+----------+-------+-------------------------------------------------+

```

Now, i want to sort every row of `Details` column in descending order based on the second element of list. Result should be -

```
+----------+-------+-------------------------------------------------+
| WindowID | State |                                         Details |
+----------+-------+-------------------------------------------------+
|        6 |    SD | [[329748,8], [156570,4], [29916,3], [245934,1]] |
|        3 |    CO |              [[1548,3], [524586,2], [527220,1]] |
+----------+-------+-------------------------------------------------+

```

How can i do it in pyspark? Thank you in advance.