Fix mergesort for comparable objects