Perhaps it wasn’t presented as a bug initially. This obviously happens when it’s not known if an issue is a bug or just not knowing how to use a feature. I think it should have been turned into a bug topic.
If you use Query Builder to create a query with aggregate columns and use this query with the table generator, including column sorting options, the sorting will fail for the aggregate columns - because an extra column is included. I would have thought this was a bug.