Forum: Pages tab and sorting
| ariniemi 396 days ago | Hi,
Sorting on Pages item doesn't seem to work properly on my Jawstats 0.7 installation in Page Views view. For example, if I sort Pages ascending, it will give me this order: 100,540 101,034 105,700 119,554 129,373 137,594 153,413 171,608 179,545 1,806,232 197,044 207,986 210,819 216,977 226,184 231,646 303,609 37,182 378,019 388,273 391,661 410,830 41,208 42,123 ... Has anybody else this problem? Sorting on other tabs and other items seems to work as it should. BR, Ari |
| SyS 369 days ago | Hi
Same problem. I think, it occurs with numbers above 1000 SyS |
| SyS 369 days ago | Hm,
sorting is wrong everywhere, the sorting seems to compare numbers as int, but the thousand separator confuse the comparing. I tried, what happens when i remove the separator from NumberFormat function, and the sorting was ok, but the number display was ugly:-) SyS |
| SyS 369 days ago | Ok
not everywhere:-) PageLayout_Pages function in jawstats.js row 2162 missing: "1:{sorter:"commaNumber"}," $(".tablesorter").tablesorter({ headers: { 1:{sorter:"commaNumber"}, 2: { sorter: false }, 3:{sorter:'bandwid...etc |
| SyS 367 days ago | it seems that there is no commaNumber sorting at all.
it works by me, because i added a RegExp('[,.]','g') in the same line at about the end too. i think that's needed everywhere, when there is possibility of more than one comma in formatted numbers $(".tablesorter").tablesorter({ headers: { 2: { sorter: false }, 3:{sorter:'bandwidth'}, 4: { sorter: false }, 6: { sorter: false }, 8: { sorter: false } }, sortList: [aSort],textExtraction:function(node){return node.innerHTML.replace(RegExp('[,.]','g'), '');}, widgets: ['zebra'] }); |
Participate in this discussion
You must be logged in to post in this thread.
Version 0.7 beta available now
Released 25th Janury 2009Try the online demo or download now.
Latest JAWStats News:
Version 0.7 Beta Released
Sprechen Sie Deutsch? Multi-lingual JAWStats v0.7 is finally here.
posted 25th Jan '09. read more »
Help JAWStats
Please donate a dollar (or more!) towards the hosting costs for this site. This money doesn't go anywhere near my pocket, it is purely used against my hosting bill.
Get $50 off your webhosting
You could do far worse than choose Dreamhost. I've used them for 6 years and they're great. Simply enter the promo code: JAWSTATS on signup!