std::sort ambiguity

std::sort ambiguity for int solved via explicit conversion to double