Buggy code:
public class ListingFragment extends Fragment implements View . OnClickListener , AdapterView . OnItemSelectedListener , IUIUpdateInterface { private ListView lv_itemList ; private Spinner sp_locationSpinner ; private Spinner sp_timeSpinner ; private View rootView ; private List < Item > allItems ; private LostFoundListAdapter adapter ; private boolean isLostFragment ; private int myLayoutId ; private String parseClassName ; private ListFilter filters = new ListFilter ( ) ; private MainActivity myMainActivity ; private ImageButton ib_sendMessage ; private ImageButton ib_showMap ; private TextView tv_lossTime ; private TextView tv_location ; private TextView tv_descriptionContent ; private ImageView iv_itemImage ; private TextView tv_descriptionTitle ; private boolean isPossibleMatchesFragment ; private PossibleMatchesActivity myPossibleMatchesActivity ; private ArrayList < String > possibleMatchesIds ; private TextView tv_no_items_available ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onDestroy ( ) { } private void initMembers ( ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } private void initWidgets ( LayoutInflater inflater , ViewGroup container ) { } private void initItemInfoWidgets ( ) { } public void searchPhrase ( Context ctx , String phrase , boolean forceUpdate ) { } public void searchPhrase ( Context ctx , String phrase ) { } private void initLocationSpinner ( ) { } private void initTimeSpinner ( ) { } private void initItemsList ( ) { } private void getItemsFromParse ( ) { ParseQuery < ParseObject > query = ParseQuery . getQuery ( parseClassName ) ; query . fromLocalDatastore ( ) ; query . whereEqualTo ( IS_ALIVE , true ) ; <START_BUG> query . orderByDescending ( CREATED_AT ) ; <END_BUG> if ( isPossibleMatchesFragment ) { query . whereContainedIn ( OBJECT_ID , possibleMatchesIds ) ; } else { query . whereEqualTo ( IS_LOST , isLostFragment ) ; } query . findInBackground ( new com . parse . FindCallback < ParseObject > ( ) { @ Override public void done ( List < ParseObject > itemsList , ParseException e ) { if ( e == null ) { allItems . clear ( ) ; for ( int i = 0 ; i < ( itemsList . size ( ) ) ; i ++ ) { convertParseListToItemList ( itemsList ) ; } if ( ! ( isPossibleMatchesFragment ) ) { ListFilterUtils . applyListFilters ( allItems , adapter , filters , ( ( MainActivity ) ( getActivity ( ) ) ) . getLastKnownLocation ( ) ) ; } else { adapter . notifyDataSetChanged ( ) ; } if ( itemsList . isEmpty ( ) ) { tv_no_items_available . setVisibility ( VISIBLE ) ; } else { tv_no_items_available . setVisibility ( INVISIBLE ) ; } Log . d ( LOST_FOUND_TAG , ( ( "Fetched<seq2seq4repair_space>" + ( allItems . size ( ) ) ) + "<seq2seq4repair_space>items<seq2seq4repair_space>from<seq2seq4repair_space>Parse" ) ) ; } } } ) ; } private void convertParseListToItemList ( List < ParseObject > itemsList ) { } @ Override public void onClick ( View v ) { } @ Override public void onItemSelected ( AdapterView < ? > parent , View view , int position , long id ) { } public boolean setDisplayedItem ( final Item item ) { } private void initConversationButton ( final Item item ) { } private void initMapButton ( Item item ) { } private boolean showItemInfoWidgets ( ) { } @ Override public void onNothingSelected ( AdapterView < ? > parent ) { } public void updateData ( ) { } @ Override public void onDataChange ( Constants . UIActions action , boolean bSuccess , Intent data ) { } public String getSearchPhrase ( ) { } public void clearFilters ( ) { } }

Fix:
query . orderByDescending ( TIME ) ;