You won't have to unless your area is a string. If the area of the object is a double then you can change the sort method to
Java Code:
public static void sort(double[] d)