// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define(["../../../chunks/languageUtils","../support/errorsupport","../support/FeatureSet","../support/IdSet","../support/OrderbyClause"],function(g,k,l,h,p){class m extends l{constructor(a){super(a);this._orderbyclause=null;this.declaredClass="esri.arcade.featureset.actions.OrderBy";this._maxProcessing=100;this._orderbyclause=a.orderbyclause;this._parent=a.parentfeatureset}async _getSet(a){if(null===this._wset){await this._ensureLoaded();const b=await this._getFilteredSet("",null,null,this._orderbyclause, a);this._checkCancelled(a);this._wset=b}return this._wset}async manualOrderSet(a,b){a=await this.getIdColumnDictionary(a,[],-1,b);this._orderbyclause?.order(a);b=new h([],[],!0,null);for(let e=0;e