always return a number in sort function