text: "use strict";angular.module("sw.plugin.sort",["sw.plugins"]).factory("sort",["$q",function(e){var t={get:1,head:2,options:3,post:4,put:5,patch:6,"delete":7};return{execute:function(r){var o=e.defer();return angular.forEach(r.resources,function(e){e.operations.sort(function(e,r){return(e.path.toLowerCase().replace(/[^a-z]+/gi,"")+"-"+(t[e.httpMethod]||9)).localeCompare(r.path.toLowerCase().replace(/[^a-z]+/gi,"")+"-"+(t[r.httpMethod]||9))})}),o.resolve(!0),o.promise}}}]).run(["plugins","sort",function(e,t){e.add(e.BEFORE_DISPLAY,t)}]);