generate.ts: sort types in cpp files


Sort the types in the generated cpp files to make a later patch
reviewable that will incorporate the new types from the 3.17
specification.

Add some special casing for DocumentSelector which has no struct and
used to not be included in the dependency calculations, so that it is
inserted in the C++ code before its usages.

Task-number: QTBUG-141713
Change-Id: I599f6109340d98eb2e94466493072020d46a3d19
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
commitc3d6520f088dc4086a5f543af54fe25a742e0ed5
parentcea4df6571961b22a08519154c8408c4108121b8
authorSami Shalayel <sami.shalayel@qt.io>
committerSami Shalayel <sami.shalayel@qt.io>
commit timeTue, 28 Apr 2026 07:14:07 +0000