There are many ways to do what you want and many ways to extract the result you want. You will have to try them out. One (probably) is:
1. Add a column somewhere - eg say Col H) and fill it with 1, 2, 3, 4 ... , numbering each row. Do this by setting H2 = 1, H3 = 2. Highlight H3. DRag it down the length of the column to fill with consecutive number. NB - you add this column so you can sort back to the original order later
2. Highlight all the data from A2 to bottom right
3. Sort the highlighted data by Data > Sort. Sort on Column C - Description, with the second sort column H Acsending. (Note the Options you can use with Sort like is there a heading in the selected range etc. My chosen highlighted range does not contain labels.
.

- sort.png (77.46 KiB) Viewed 9392 times
You now have all the payee sorted together in alphabetical order, with each payee's entries listed in the order they appear. This needs all the payee names to be identical. (If they aren't, add a helper column, and put a 1 for all the variants of Fred, a 2 for all the variants of Bill etc. Sort on this column).
When finished, highlight all the data from A2 to bottom right and sort the highlighted data on Column H to put it back in the original order.
Note if a cell in one row has a value determined by a cell in a different row, the values will be wrong after the sort. See Sorted.ods where Totals goes wrong when sorted back into the original order.
I suggest you read
[Tutorial] Ten concepts that every Calc user should know on using spreadsheets and read the
LibreOffice Calc manual. You will get lost otherwise. Remember, 90% of spreadsheets have errors their authors don't know about.
Sorry, Your Spreadsheet Has Errors (Almost 90% Do) - Forbes
See Original.ods and sorted.ods for examples.