Pivot configuration

I have like 100 properties. When I try to drag them into rows or columns in Pivot configuration, they are not in order at all, making it very hard to find the one I want. Is there a way to sort them? Thx

Hi,

you can call sort function for “fields” list and add “text” view for data filtering:

$$("pivot").attachEvent("onPopup", function(popup){
        // fields view
	var fieldsList = popup.$$("fields");

	// sorting
	fieldsList.attachEvent("onAfterLoad", function(){
		this.sort("text","asc");
	});

	// add text view for filtering
	fieldsList.getParentView().addView({
		view: "text", id: "fieldsFilter"
	},1);
	
        $$("fieldsFilter").attachEvent("onTimedKeyPress",function(){
             var value = this.getValue().toLowerCase();
             fieldsList.filter(function(obj){
                  return obj.text.toLowerCase().indexOf(value)==0;
             });
        });

});

Wow, work like a charm. Grateful