]> git.sesse.net Git - stockfish/commitdiff
RootMoveList sorting: be compatible with std::sort
authorMarco Costalba <mcostalba@gmail.com>
Fri, 5 Sep 2008 07:04:45 +0000 (09:04 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 5 Sep 2008 07:04:45 +0000 (09:04 +0200)
sort() and sort_multipv() are almost the same, so
use only one implementation.

Also introduce the natural RootMove::operator<() to
compare the moves instead of compare_root_moves(),
this will allow to use std::sort instead of our
home grown bubble-sort.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found