The “standard library” often isn’t available in early boot scenarios.
Besides I would assume anyone getting ready for their leetcode assignments goes through them anyway.
The real ones, the ones that write USENIX papers.
Compared to the rest of the task, writing a sort is pretty darn trivial.