How should I sort a doubly linked list the D way?
no at spam.net
Tue Aug 13 12:34:46 UTC 2019
On Tuesday, 13 August 2019 at 09:48:52 UTC, Mirjam Akkersdijk
> I would write my compare function and let qsort sort it out.
I'm confused by this statement. Are you referring to the qsort in
C's stdlib? I had never heard of using that to sort a linked
list, so I searched, and it is not possible.
https://stackoverflow.com/questions/7091685/doesnt-qsort-c-library-function-work-on-linked-lists: "qsort works on plain arrays of equally sized data, not linked lists"
More information about the Digitalmars-d-learn