iio: Fix the sorting functionality in iio_gts_build_avail_time_table (CVE-2024-43825) | HOL Guard CVE