I need to validate if the fetched time is sorted correctly in asc order(mins, hours, days etc).
Here is my scenario :
I have a list of elements at different times.
I need to validate if the results are in the correct order and this is what I am expecting after sorting:
(1min,1min,2min,1hr,2days,3days) if the output result is not matching the expected value, it should fail the test case.
How can I achieve this? do I need to write a codded test?