aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--theme/list_lib.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js
index 348765bff..085d049c4 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -401,22 +401,22 @@ function cmpDateDes(j, iSmaller)
function cmpAtempAsc(j, iSmaller)
{
- return parseInt(items[j].temperature.air, 10) < parseInt(items[iSmaller].temperature.air, 10);
+ return parseFloat(items[j].temperature.air, 10) < parseFloat(items[iSmaller].temperature.air, 10);
}
function cmpAtempDes(j, iSmaller)
{
- return parseInt(items[j].temperature.air, 10) > parseInt(items[iSmaller].temperature.air, 10);
+ return parseFloat(items[j].temperature.air, 10) > parseFloat(items[iSmaller].temperature.air, 10);
}
function cmpWtempAsc(j, iSmaller)
{
- return parseInt(items[j].temperature.water, 10) < parseInt(items[iSmaller].temperature.water, 10);
+ return parseFloat(items[j].temperature.water, 10) < parseFloat(items[iSmaller].temperature.water, 10);
}
function cmpWtempDes(j, iSmaller)
{
- return parseInt(items[j].temperature.water, 10) > parseInt(items[iSmaller].temperature.water, 10);
+ return parseFloat(items[j].temperature.water, 10) > parseFloat(items[iSmaller].temperature.water, 10);
}
function sort_it(sortOn, function_)