You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Select a table header of execution time to sort it
What is the expected output? What do you see instead?
The execution time should be sorted in ascending or descending order.
But for ascended sorting is 2 ms > 1.000 ms
I checked it in the code and saw that it is using String comparison in
Javascript (sorry it's a while ago when I did it).
What version of the product are you using? On what application server, JDK,
operating system?
Linux, JBoss, Javamelody 1.28.0
Please provide any additional information below.
First of all: Java melody is a great tool and we improved greatly in our
project because we use it!
Original issue reported on code.google.com by mobil...@gmail.com on 22 Jun 2011 at 7:20
Thanks for the issue.
I have reproduced it using German [de] in the browser.
The cause is the '.' for the German thousand separator: it is considered as a
US decimal separator by the javascript library.
The fix will be to remove '.' in the sort_numeric method.
Original comment by evernat@free.fr on 23 Jun 2011 at 11:58
I have committed the fix in trunk of svn in the javascript library (revision
1915) and it is ready for the next release (1.30).
And I have made a new build from the current trunk and it is available at:
http://javamelody.googlecode.com/files/javamelody-20110625.jar
Original comment by evernat@free.fr on 24 Jun 2011 at 11:39
Changed title: Sorting of numbers is based on String comparison in German
Original issue reported on code.google.com by
mobil...@gmail.com
on 22 Jun 2011 at 7:20Attachments:
The text was updated successfully, but these errors were encountered: