bug fixed, std::sort algorithm requires a sort function that creates a strict-weak ordering