i have a array list having the array of ratting i want to sort ratting in ascending order. according to the ratting i want data in array list will also sort
   static ArrayList<data1> al=new ArrayList<data1>();
static class data1
{
  int ratting;
   String retailer_image1;
   String retailer_image2;
   String retailer_image3;
   String retailer_image4;
   String retailer_image5;
   String retailer_image6;
   String retailer_image7;
   String retailer_image8;
   String retailer_image9;
   String retailer_image10;
   String retailer_image11;
   String retailer_image12;
   int id;
   data1(int id,double lati,double longi,String path,String address,String city,String telephone,String distance,String title,String image, String retailer_image1, String retailer_image2, String retailer_image3, String retailer_image4, String retailer_image5, String retailer_image6, String retailer_image7, String retailer_image8, String retailer_image9, String retailer_image10, String retailer_image11, String retailer_image12,int ratting,String zip)
   {
       this.image=image;
       this.retailer_image1=retailer_image1;
       this.retailer_image2=retailer_image2;
       this.retailer_image3=retailer_image3;
       this.retailer_image4=retailer_image4;
       this.retailer_image5=retailer_image5;
       this.retailer_image6=retailer_image6;
       this.retailer_image7=retailer_image7;
       this.retailer_image8=retailer_image8;
       this.retailer_image9=retailer_image9;
       this.retailer_image10=retailer_image10;
       this.retailer_image11=retailer_image11;
       this.retailer_image12=retailer_image12;
       this.ratting=ratting;
       this.zip=zip;
   }
} 
 
     
     
    