code: public Integer getViewOrder(boolean useDefault) {
  
          Integer defaultViewOrder = getDefaultViewOrder(m_name);
          Integer result = null;
          if (m_viewOrder != null) {
              result = m_viewOrder;
          } else if (useDefault) {
              if (defaultViewOrder != null) {
                  result = defaultViewOrder;
              } else {
                  result = new Integer(9999);
              }
          }
          return result;
      }
docs: Gets the view order, optionally using a default value if the view order is not configured.<p>
  
  @param useDefault true if a default should be returned in the case where the view order is not configured
  
  @return the view order