Hello guys, nice to meet you all. I was looking forward to a solution to fix the problem that makes my algorithm die. It is about a linked-list, the elements are type Node which contains a integer, which represents the priority of the node.
I wanted to sort the given input based on the int inside the node by sort-selection.