This patch adds a pop->sort member which is initially
NULL, meaning that the internal sorting is used.
pop->sort can be set to a any other sorting function,
eg. a qsort wrapper or a stl::sort wrapper. If
pop->sort is left as NULL, gaul will behave as w/o the
patch.