mirror of
https://github.com/ziglang/zig.git
synced 2026-01-27 17:55:24 +00:00
This reverts commit 8b10970836480a43a3bbb1276cb258c2a8b613f2. This implementation has the following problems: * It does not provide context to the less than function. This will be an API break in order to fix. * It uses recursion, causing unbounded stack memory usage - likely depending on user input, which is extra problematic. * Sorting linked lists is generally an inefficient operation; encouraging it by having a standard library function for it may lead to suboptimal software being written in Zig. Furthermore, there is almost no benefit to providing a sort function as a method, when a third party implementation can easily be passed a linked list to then be sorted.