People who think this way haven’t written boot code.. I suppose you’re gonna link the c runtime too and it’s assumption of being a “process” under some “operating system”.. oh wait.
Compared to the rest of the task, writing a sort is pretty darn trivial.
This is true if we're talking about the first stage bios boot that needs to fit in 512 bytes, but there aren't any particular restraints on kernel size at the point in question. Link in anything you want, including qsort.
Compared to the rest of the task, writing a sort is pretty darn trivial.