Skip to content

SortAO

Your TypeScript ordered container suite, also supports switching the underlying container on demand.

Easy to use

SortAO provides 4 advanced wrappers out of the box.

Flexible and efficient

These wrappers can replace the underlying containers! You can choose the most suitable engine based on the access pattern of your business.

It is worth noting that these kernel containers can be used independently, providing more low-level access control and facilitating optimization.

ContainerFeaturesQuery by rankingInsert
Balanced overall performance, memory-friendly, default option.O(log N)O(B + N/B)
The query efficiency is consistent with that of native arrays.O(1)O(B + N/B)
The operation near the extreme values at both ends is highly efficient.O(1)O(B + N/B)
Automatically optimize local hot data.O(log N) *O(log N) *