You can customize how series and title should be formatted when used in templates. By default "library_order" is used. You seem to prefer "strictly_alphabetical".
You have to manually edit the tweak. More details in the manual, see save_template_title_series_sorting:
http://manual.calibre-ebook.com/customize.html#tweaks