@univerjssheets-sortclassesSheetssortservice

@univerjs/sheets-sort v0.5.0-beta.1Docs


Class: SheetsSortService

Extends

Constructors

new SheetsSortService()

new SheetsSortService(
   _univerInstanceService, 
   _commandService, 
   _formulaDataModel): SheetsSortService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_formulaDataModelFormulaDataModel

Returns

SheetsSortService

Overrides

Disposable.constructor

Defined in

sheets-sort/src/services/sheets-sort.service.ts:35

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93

Methods

applySort()

applySort(
   sortOption, 
   unitId?, 
   subUnitId?): void

Parameters

ParameterType
sortOptionISortOption
unitId?string
subUnitId?string

Returns

void

Defined in

sheets-sort/src/services/sheets-sort.service.ts:103


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96


emptyCheck()

emptyCheck(location): boolean

Parameters

ParameterType
locationISheetRangeLocation

Returns

boolean

Defined in

sheets-sort/src/services/sheets-sort.service.ts:57


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100


formulaCheck()

formulaCheck(location): boolean

Parameters

ParameterType
locationISheetRangeLocation

Returns

boolean

Defined in

sheets-sort/src/services/sheets-sort.service.ts:80


getAllCompareFns()

getAllCompareFns(): ICellValueCompareFn[]

Returns

ICellValueCompareFn[]

Defined in

sheets-sort/src/services/sheets-sort.service.ts:99


mergeCheck()

mergeCheck(location): boolean

Parameters

ParameterType
locationISheetRangeLocation

Returns

boolean

Defined in

sheets-sort/src/services/sheets-sort.service.ts:43


registerCompareFn()

registerCompareFn(fn): void

Parameters

ParameterType
fnICellValueCompareFn

Returns

void

Defined in

sheets-sort/src/services/sheets-sort.service.ts:95


singleCheck()

singleCheck(location): boolean

Parameters

ParameterType
locationISheetRangeLocation

Returns

boolean

Defined in

sheets-sort/src/services/sheets-sort.service.ts:73