cannot sort selection appear when I try to sort a table in writer

I select the table and choose sort from the table menu then I choose the column to sort the table and the warning “cannot sort selection” appear and the table doesn’t sort

Don’t post twice. You create confusion: users don’t know to which occurrence they should answer. This also has a risk of cross answers (bits of complementary infomation in both). So please delete this other one.

Edit your question (don’t use an answer which is reserved for solutions) to explain what is selected and what are the sort criteria/parameters. While you’re at it, mention OS and LO version.