添加排序属性:
window.swaggerUi = new SwaggerUi({ ... apisSorter: "alpha", // can also be a function operationsSorter : "method" // can also be 'alpha' or a function });
能实现文档排序了,当然这个好像是说swagger2.0之后才有这两个属性