When you click on Patrons > New Patron, the patron categories in the drop down are sorted by description. However, when you edit a patron record, the categories are sorted by categorycode. These should be consistent, and as it isn't possible to edit the categorycode, ideally both drop downs should sort by category description.
The "New patron" dropdown menu comes from patron-toolbar.inc, in which the patron categories are retrieved using a template plugin, Categories.pm. This lets the include file be embedded in multiple pages without modifying those pages' corresponding scripts to include category retrieval code. The patron entry page has its own code to retrieve both category type and category information. Perhaps the template plugin could be modified to provide more information when necessary?
(In reply to David Roberts from comment #0) > These should be consistent, and as it > isn't possible to edit the categorycode, ideally both drop downs should sort > by category description. +1 for this - this is a major problem for us.