Some tools like AWS API gateway generate unsorted OpenAPI specifications. It brings some troubles in presenting documentation to customers despite might be looking totally fine at the development/tooling side.
This is a very simplistic script used to sort OpenAPI 3 endpoints and tags consistently.
Any extension and support are greatly appreciated!