Show:

Augment the YUI3 ArraySort with more util methods.

Constructor

Methods

compareIgnoreWhiteSpace

(
  • a
  • b
  • desc
  • compareFn
)

Compare two arrays ignoring white spaces.

Parameters:

  • a Object
  • b Object
  • desc Object
  • compareFn Object

Returns:

sort

stableSort

(
  • array
  • compareFn
)

Sorts an object array keeping the order of equal items. ECMA script standard does not specify the behaviour when the compare function returns the value 0;

Parameters:

  • array Object
  • compareFn Object