Skip to main content

Pentaho+ documentation is moving!

The new product documentation portal is here. Check it out now at docs.hitachivantara.com

 

Hitachi Vantara Lumada and Pentaho Documentation

Sort

pentaho.type.action Sort

The Sort class describes the primitive operation that sorts the element in a list.

This type of change is always part of a pentaho.type.action.ListChangeset.

AMD Module

require(["pentaho/type/action/Sort"], function(Sort) { /* code goes here */ });

Extends

Constructor

Name Description
new Sort(comparer)

Creates an instance.

Members

Name Description
id
Static
type : string

Gets the type of change.

Methods

Name Description
_apply()

Constructor Details

new Sort(comparer)

Creates an instance.

Source: javascript/web/pentaho/type/action/Sort.js, line 42

Parameters:
Name Default Value Summary
comparer : function

The function used for comparing elements in the list.

Members Details

id:
Static

Source: javascript/web/pentaho/type/action/Sort.js, line 65

type: string

Gets the type of change.

Source: javascript/web/pentaho/type/action/Sort.js, line 55

Default Value: "sort"

See also: pentaho.type.action.Change#type

Methods Details

_apply()

Source: javascript/web/pentaho/type/action/Sort.js, line 60