@Override
 public void onLoadFinished(
     Loader<SelectProgramFragmentForm> loader, SelectProgramFragmentForm data) {
   if (LOADER_ID == loader.getId()) {
     mProgressBar.setVisibility(View.GONE);
     mForm = data;
     ((TrackedEntityInstanceAdapter) mAdapter).setData(data.getEventRowList());
     mAdapter.swapData(data.getEventRowList());
   }
 }
  private void setFocusSortColumn(int column) {
    TrackedEntityInstanceAdapter teiAdapter = (TrackedEntityInstanceAdapter) mAdapter;
    View view = mForm.getColumnNames().getView();

    switch (column) {
        // todo put UI stuff inside here when list is sorted either ascending or descending
      case 1: // first column
        {
          if (teiAdapter.getFilteredColumn() == column) {

          } else if (teiAdapter.isListIsReversed(column)) {

          }

          break;
        }
      case 2: // second column
        {
          break;
        }
      case 3: // third column
        {
          break;
        }
      case 4: // status column
        {
          break;
        }
    }
  }