The prop modules are using pageids for internal order, not the title (alphabetically).
You will see this, when using generator with a prop (example url): The <templates> tag is first added to the <page> tag with the lowerst pageid, not for the first <page> tag in the list.
In my opinion is that not a intuitive order. It is possible to change that order? Thanks.
Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/w/api.php?action=query&generator=allpages&gaplimit=50&gapfrom=Main%20Page&prop=info|templates