LogR and R passed backwards into Sort Function in ssspy.cpp