private void alternateSortOrder(DynamicGridColumn column) { if (form.getLocalContext().getSortOrder() == null) { form.getLocalContext().setSortOrder(new TrackingColumnsSortOrderVo()); } if (column.getIdentifier().equals(form.getLocalContext().getSortOrder().getColumnType())) { if (Boolean.TRUE.equals(form.getLocalContext().getSortOrder().getSortOrder())) { form.getLocalContext().getSortOrder().setSortOrder(false); } else { form.getLocalContext().getSortOrder().setSortOrder(true); } } else { form.getLocalContext().getSortOrder().setColumnType((TrackingAreaColumn) column.getIdentifier()); form.getLocalContext().getSortOrder().setSortOrder(true); } }