This patch fixes some ordering issues in HWR_CreateDrawNodes. It also makes it faster by replacing the O(n^2) bubble sort algorithm with O(n \log n) quick sort.
O(n \log n)
This has been sorely needed for so long, thanks so much!
changed milestone to 2.2.5
mentioned in commit 2e827705
This will create a new commit in order to revert the existing changes.