We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22d749a commit 1c6520dCopy full SHA for 1c6520d
frontend/express/public/javascripts/countly/countly.views.js
@@ -1640,11 +1640,18 @@ window.AppVersionView = countlyView.extend({
1640
"mRender": function(data, type) {
1641
if (type === "sort") {
1642
var numbers = data.split(".");
1643
- data = "";
1644
- for (var i in numbers) {
1645
- data += numbers[i];
+ var sortValue = 0;
+ var multipler = 10000;
+ for (var index in numbers) {
1646
+ var valueArr = numbers[index].split("");
1647
+ if (valueArr.length > 1) {
1648
+ valueArr.splice(1, 0, '.')
1649
+ numbers[index] = parseFloat(valueArr.join(""));
1650
+ }
1651
+ sortValue += multipler * parseFloat(numbers[index]);
1652
+ multipler = multipler / 100;
1653
}
- parseInt(data);
1654
+ data = sortValue;
1655
1656
return data;
1657
0 commit comments