How does Kaspa determine the order of transactions?
Kaspa orders transactions by a value called blue work, from lowest to highest, with ties broken by comparing hashes. Because Kaspa's blockDAG lets blocks be created in parallel, the network needs a way to assign every transaction a definite position without a single linear chain to fall back on. Blue work achieves this because it has the property of respecting topology — meaning the ordering it produces is consistent with the structure of the blockDAG itself, thanks to what the GHOSTDAG protocol calls the max operator. For a beginner, the practical takeaway is that Kaspa always knows which transaction came first, even when many blocks arrive at nearly the same time.