Whenever I try to reverse the order of the time slots, I am unable to select even they are consecutive
I’m working on a web application where users are required to select a minimum of two time slots for booking appointments. Additionally, these selected time slots must be consecutive, meaning that there should be no gaps between them. Despite implementing JavaScript validation to enforce this requirement, the system still identifies selected time slots as non-consecutive, even when they are. Any insights on why this validation isn’t working as expected would be greatly appreciated.