i want to sort my List view with price but my price object i get with My Web Service ? also this object value similar like "$49.55" same as "$39.55". : Then how can i compare both value? 
Which Datatype is used for them? 
I get string type data. 
How to Parse the data for compare value?

This is my spinner click event. how can i sort upper value with my "JSON" Service Object. 



            public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
                 final TextView selectedText = (TextView) parent.getChildAt(0);
                if (selectedText != null) {
                    selectedText.setTextColor(Color.WHITE);
                    if (id == 1) {
                        selectedText.setTextColor(Color.WHITE);
                        Collections.sort(mlistElectricity, new Comparator<RetailerPlanBean>(){
                            @Override
                            public int compare(RetailerPlanBean emp1, RetailerPlanBean emp2) {
                                return emp1.getmPRICE().compareToIgnoreCase(emp2.getmPRICE());
                            }
                        });
                        mRateLv = (ListView) rootview.findViewById(R.id.find_enery);
                        mRateLv.setAdapter(new FindRateAdapter(getActivity(), mlistElectricity));
                        mAllListCountTv.setText(""+mlistElectricity.size()+" LIST");
                        adapter.notifyDataSetChanged();
                    }else if (id == 2){
                        selectedText.setTextColor(Color.WHITE);
                        Collections.sort(mlistElectricity, new Comparator<RetailerPlanBean>(){
                            @Override
                            public int compare(RetailerPlanBean emp1, RetailerPlanBean emp2) {
                                return emp2.getmPRICE().compareToIgnoreCase(emp1.getmPRICE());
                            }
                        });
                        mRateLv = (ListView) rootview.findViewById(R.id.find_enery);
                        mRateLv.setAdapter(new FindRateAdapter(getActivity(), mlistElectricity));
                        mAllListCountTv.setText(""+mlistElectricity.size()+" LIST");
                        adapter.notifyDataSetChanged();
                    }else {
                        selectedText.setTextColor(Color.WHITE);
                    }

                }
            }

            @Override
            public void onNothingSelected(AdapterView<?> parent) {

            }
        });
