• Blog
  • Changelog
  • Follow us on GitHubFollow us on XJoin our Discord server
  • Blog
  • GitHub
  • Releases
  • Getting started

    • Overview
  • Library

    • Getting started
    • Array
    • Result
    • Dependency injection
    • Resource management
    • Task
    • Type
    • Conventions
  • Local-first

    • Getting started
    • Playgrounds
    • Examples
    • Owners
    • Relay
    • Migrations
    • Time travel
    • Indexes
    • Protocol
    • Privacy
    • FAQ
  • Other

    • API reference
    • Comparison
    • Showcase
    • Changelog

API reference › @evolu/common › Order › orderBigInt

const orderBigInt: Order<bigint>;

Defined in: packages/common/src/Order.ts:103

An order for bigints in ascending order.

Example

orderBigInt(1n, 2n); // -1
orderBigInt(2n, 1n); // 1
orderBigInt(1n, 1n); // 0
[2n, 1n, 3n].toSorted(orderBigInt); // [1n, 2n, 3n]
Markdown for LLMs

© 2026 Evolu

Follow us on GitHubFollow us on XJoin our Discord server