On Saturday, 13 October 2018 at 11:11:41 UTC, Codifies wrote:
Does anyone has any ideas on improving this sortable list
Yes. Use an array. No, really, use an array. Now, really, use an array. If reallocations while building your paths become a problem, you can write a deque (bucket array) or a dlist. But still, afterwards just convert it to array and use that.