Update Processing sorting algorithms to use Comparable