Doubt in the program

as the compartors work for a<=b then why again -1

@yaswanth0412 there is error in the video using comparator on lowerbound makes it behave as upperbound nothing else