]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/CalendarEvent.pm
calendarevent: change sorting of hours and minutes to numeric
[pve-common.git] / src / PVE / CalendarEvent.pm
index f6a11c4423e6395c09a39f90735a7b2e97350ba7..2714841c1aab6039c4f6337e348d61d68231734d 100644 (file)
@@ -137,13 +137,13 @@ sub parse_calendar_event {
     if ($matchall_hours) {
        $h = '*';
     } else {
-       $h = [ sort keys %$hours_hash ];
+       $h = [ sort { $a <=> $b } keys %$hours_hash ];
     }
 
     if ($matchall_minutes) {
        $m = '*';
     } else {
-       $m = [ sort keys %$minutes_hash ];
+       $m = [ sort { $a <=> $b } keys %$minutes_hash ];
     }
 
     return { h => $h, m => $m, dow => [ sort keys %$dow_hash ]};