I want to sort the array list with having maximum value in first position. Currently I am doing as shown below:
for (int i = 0; i < str_position.size(); i++) {
int position_id = str_position_id_one_time;
position_id--;
Log.e("position_id---=------>",""+position_id);
str_position_id_one_time = position_id;
array_bitmap_grid_adpater.remove(Integer.parseInt(str_position.get(i)));
adapter_GridView.notifyDataSetChanged();
Sort the array list maximum value on first position ex : [0, 1, 5, 3] i need [5, 3, 1, 0]