forked from loafle/openapi-generator-original
The hasMore field of the global authMethods was broken due to sorting after setting that field. The sort order for per-operation authMethods was not guaranteed to be consistent across runs because it didn't do sorting. This change fixes those issues by always sorting and setting the hasMore field post-sort.