mention below code is filling dropdown with time-based on condition but problem is that it sorting order is wrong when I add 10 am to 1 pm it is working fine when I updated time