!function(e){formintorjs.define(["admin/models/result-model"],function(e){return Backbone.Collection.extend({model:e,comparator:"order",get_by_name:function(e){e=e.toLowerCase();var t=!1;return this.each(function(n){n.get("name").toLowerCase()==e&&(t=n)}),t},model_index:function(e){return this.indexOf(e)},get_by_index:function(e){return this.at(e)},move_to:function(e,t){if(e===t)return this;var n=this,r=this.findWhere({order:e});return this.remove(r,{silent:!0}),this.add(r,{at:t,silent:!0}),this.each(function(e,t){n.get(e).set("order",t)}),this}})})}(jQuery);