code: private String getOrderByColumn(String[] orderByColumns, Attribute column)
      {
  
          if (orderByColumns != null)
          {
              for (String orderColumn : orderByColumns)
              {
                  String[] orderValue = orderColumn.split("\\s");
                  String orderColumnName = orderValue[0].substring(orderValue[0].lastIndexOf('.') + 1);
                  String orderColumnValue = orderValue[1];
  
                  if (orderColumnName.equals(((AbstractAttribute) column).getName())
                          || orderColumnName.equals(((AbstractAttribute) column).getJPAColumnName()))
                  {
                      return orderColumnValue;
                  }
              }
          }
          return null;
  
      }
docs: getOrderByColumn method return order by value of the column
  
  @param String
  [] orderByColumns
  
  @param Attribute
  column
  
  @return orderColumnValue.