Sorts the particles to draw particles furthest from the camera first, in order to achieve proper depth perspective.
NOTE: This operation is very expensive and should only be used when you are drawing particles with both opaque and semi-transparent portions, and not using additive blending.
Merge Sort is the sorting algorithm used, as it tends to be best for linked lists. TODO - WHILE MERGE SORT SHOULD BE USED, DUE TO TIME CONSTRAINTS A (PROBABLY) SLOWER METHOD (QUICK-SORT) IS BEING USED INSTEAD. THIS FUNCTION NEEDS TO BE UPDATED TO USE MERGE SORT STILL. THE LINKED LIST MERGE SORT ALGORITHM CAN BE FOUND AT http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html
Assembly: DPSF (in DPSF.dll) Version: 18.104.22.168
How long it has been since the last update