compareChunkGroupsByIndex(a, b): 0 | 1 | -1
Compares chunk groups by index.
Compares the provided values and returns their ordering.
compareChunksById(a, b): 0 | 1 | -1
Returns compare result.
compareChunksNatural(chunkGraph): Comparator<Chunk>
ChunkGraphComparator<Chunk>Compares chunks natural.
compareIds(a, b): 0 | 1 | -1
Compares the provided values and returns their ordering.
compareIterables(elementComparator): Comparator<Iterable<T>>
Comparator<T>Comparator<Iterable<T>>Compares iterables.
compareLocations(a, b): 0 | 1 | -1
0 | 1 | -1Compare two locations
Compare modules by their full name. This differs from comparing by identifier in that the values have been normalized to be relative to the compiler context.
Compares modules by id.
compareModulesByIdentifier(a, b): 0 | 1 | -1
Returns compare result.
Compares modules by id or identifier.
Compares modules by post order index or identifier.
Compares modules by pre order index or identifier.
compareNumbers(a, b): 0 | 1 | -1
Compares the provided values and returns their ordering.
compareSelect(getter, comparator): Comparator<T>
Selector<T, R>Comparator<R>Comparator<T>Compares the provided values and returns their ordering.
compareStrings(a, b): 0 | 1 | -1
Compares the provided values and returns their ordering.
compareStringsNumeric(a, b): 0 | 1 | -1
Compares strings numeric.
concatComparators(c1, c2, ...cRest?): Comparator<T>
Comparator<T>Comparator<T>Comparator<T>[]Comparator<T>Concat comparators.
keepOriginalOrder(iterable): Comparator<T>
Iterable<T>Comparator<T>Keep original order.
sortWithSourceOrder(dependencies, dependencySourceOrderMap, onDependencyReSort?): void
Dependency[]WeakMap<Dependency, DependencySourceOrder>(dep: Dependency, index: number) => voidvoidFor HarmonyImportSideEffectDependency and HarmonyImportSpecifierDependency, we should prioritize import order to match the behavior of running modules directly in a JS engine without a bundler. For other types like ConstDependency, we can instead prioritize usage order. https://github.com/webpack/webpack/pull/19686
TT-1 | 0 | 1Creates a cached parameterized comparator.
TArgComparator<T>