class="token plain">        //根据自定义扩展属性order进行排序</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">        Collections.sort(resources, new Comparator&lt;SwaggerResourceExt&gt;() {</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">            @Override</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">            public int compare(SwaggerResourceExt o1, SwaggerRes