how to get an ordered json file from firebase
<p>Ive used firebaase recyclerview , and populated it with a json uploaded .
i have the items listed in ordered in the JSON file and wish to recieve them in the same order. However every time I get it jumbled in my app . How to solve this ?</p>

<pre><code>public class NoticesFragment extends Fragment {

    private RecyclerView mNoticesList;
    private DatabaseReference mDatabase;
//    private ProgressDialog vProgress;
    private View rootview;
    private FirebaseRecyclerAdapter&lt;Notices,NoticeViewHolder&gt; firebaseRecyclerAdapter;


    public NoticesFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
         rootview = inflater.inflate(R.layout.fragment_notices, container, false);
        Toast.makeText(getActivity(),"Please Wait While Load , It May Take Some Time ...", Toast.LENGTH_SHORT).show();

        mDatabase = FirebaseDatabase.getInstance().getReference().child("notice");

        mNoticesList = (RecyclerView) rootview.findViewById(R.id.notices_list);

        mNoticesList.setLayoutManager(new LinearLayoutManager(  getActivity() ) );

        mNoticesList.setHasFixedSize(true);

        return rootview;
    }


    @Override
    public void onStart() {
        super.onStart();

         firebaseRecyclerAdapter = new FirebaseRecyclerAdapter&lt;Notices, NoticeViewHolder&gt;(

                Notices.class,
                R.layout.list_view_row,
                NoticeViewHolder.class,
                mDatabase

        ) {
            @Override
            protected void populateViewHolder(NoticeViewHolder viewHolder, Notices model, int position) {
                    viewHolder.setRefertext(model.getRefer());
                    viewHolder.setDatetext(model.getDate());
                    viewHolder.setLink(model.getLink());
            }
        };



        mNoticesList.setAdapter(firebaseRecyclerAdapter);

    }

    public static class NoticeViewHolder extends RecyclerView.ViewHolder{

        final View mView;
        private String link;
        private Intent myIntent;
         public NoticeViewHolder(View itemView) {
            super(itemView);

             mView = itemView;
             mView.setOnClickListener(new View.OnClickListener() {
                 @Override
                 public void onClick(View v) {
                     try {
                         Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(link));
                         mView.getContext().startActivity(myIntent);
                     } catch (ActivityNotFoundException e) {
                         Toast.makeText(mView.getContext(),"No Activity found to handle the request ",Toast.LENGTH_LONG).show();
                         e.printStackTrace();
                     }
                 }
             });

        }
        public void setRefertext(String refertext){
            TextView referText = (TextView) mView.findViewById(R.id.refer_text);
            referText.setText(refertext);
        }

        public void setDatetext (String datetext){
            TextView dateText = (TextView) mView.findViewById(R.id.date_text);
            dateText.setText(datetext);

        }

        public void setLink (String link){
            this.link = link;

        }

    }







}
</code></pre>

<p>What shall I do so that the ordered JSON that I uploaded onto firebase? I want get back the items in the same order.</p>