@univerjssheets-sortindexclassesSheetssortservice

@univerjs/sheets-sort v0.5.4


Class: SheetsSortService

Defined in: sheets-sort/src/services/sheets-sort.service.ts:32

Extends

Constructors

new SheetsSortService()

new SheetsSortService(
   _univerInstanceService, 
   _commandService, 
   _formulaDataModel): SheetsSortService

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

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_formulaDataModelFormulaDataModel

Returns

SheetsSortService

Overrides

Disposable.constructor

Properties

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

Methods

applySort()

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

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

Parameters

ParameterType
sortOptionISortOption
unitId?string
subUnitId?string

Returns

void


dispose()

dispose(): void

Defined in: core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


emptyCheck()

emptyCheck(location): boolean

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

Parameters

ParameterType
locationISheetRangeLocation

Returns

boolean


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


formulaCheck()

formulaCheck(location): boolean

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

Parameters

ParameterType
locationISheetRangeLocation

Returns

boolean


getAllCompareFns()

getAllCompareFns(): ICellValueCompareFn[]

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

Returns

ICellValueCompareFn[]


mergeCheck()

mergeCheck(location): boolean

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

Parameters

ParameterType
locationISheetRangeLocation

Returns

boolean


registerCompareFn()

registerCompareFn(fn): void

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

Parameters

ParameterType
fnICellValueCompareFn

Returns

void


singleCheck()

singleCheck(location): boolean

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

Parameters

ParameterType
locationISheetRangeLocation

Returns

boolean