Fixed bug in sorting of heroes.