Fixed printout of custom sorting value.