code: public static CommerceOrder[] findByGroupId_PrevAndNext(
  		long commerceOrderId, long groupId,
  		OrderByComparator<CommerceOrder> orderByComparator)
  		throws com.liferay.commerce.exception.NoSuchOrderException {
  		return getPersistence()
  				   .findByGroupId_PrevAndNext(commerceOrderId, groupId,
  			orderByComparator);
  	}
docs: Returns the commerce orders before and after the current commerce order in the ordered set where groupId = &#63;.
  
  @param commerceOrderId the primary key of the current commerce order
  @param groupId the group ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce order
  @throws NoSuchOrderException if a commerce order with the primary key could not be found