A family of Microsoft word processing software products for creating web, email, and print documents.
In Word, you can sort text paragraphs, each of which is terminated by a paragraph mark (represented by a pilcrow, ¶, if you choose to display nonprinting marks).
It is also possible to sort table rows, based on the content in table columns.
I suspect that the crucial part here is what you mean by "groupings" in this context.