Post
Yeah, Float64Array.sort is easy mode: with no args, we call straight into the runtime and run std::sort on the backing store (github.com/v8/v8/blob/m...). To get Array.sort close to this speed, you'd have to already have the right backing store, and then inline the comparator somehow.
Array sorting was long an intern/starter project, so I imagine it must've come up. @verwaest.bsky.social would likely know