package utils;

import java.math.BigDecimal;
import java.util.Comparator;

public class BigDecimalStringComparator implements Comparator<String> {

	
	@Override
	public int compare(String a, String b) 
	{	
		try
		{
			BigDecimal one = new BigDecimal(a);
			BigDecimal two = new BigDecimal(b);
			
			return one.compareTo(two);
		}
		catch(Exception e)
		{
			return 0;
		}
	}

}

@@ -209,16 +209,94 @@
 try%0A%09%09%7B%0A
+%09%09%09String a2 = a.replace(%22,%22 , %22%22);%0A%09%09%09String b2 = b.replace(%22,%22 , %22%22);%0A%09%09%09%09%09%0A
 %09%09%09BigDe
@@ -323,16 +323,17 @@
 ecimal(a
+2
 );%0A%09%09%09Bi
@@ -367,15 +367,12 @@
 al(b
+2
 );%0A
-%09%09%09%0A
 %09%09%09r

fix sort Decimals whith commas in tables