From 59fcc04bb1e92ce0476ae3eecf8d4967c9dd3133 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 27 Jun 2012 19:39:37 +0000 Subject: Sort correctly minutes compared to seconds --- index.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 4add4c6..18cec0b 100644 --- a/index.php +++ b/index.php @@ -482,6 +482,12 @@ if ($total > 0) { if ($b[1] == 'hour' || $b[1] == 'hours') $b[0] *= 3600; + if ($a[1] == 'minute' || $a[1] == 'minutes') + $a[0] *= 60; + + if ($b[1] == 'minute' || $b[1] == 'minutes') + $b[0] *= 60; + if ($a[0] > $b[0]) return 1; elseif ($a[0] < $b[0]) -- cgit v1.2.1