code: private int findSmallestFrom(int startId, List<String> sortFlds, List<Integer> sortDirs) {
  		int minId = startId;
  		moveToId(startId);
  		while (super.next()) {
  			int id = currentId();
  			if (minId < 0 || compareRecords(minId, id, sortFlds, sortDirs) > 0)
  				minId = id;
  			moveToId(id);
  		}
  		return minId;
  	}
docs: Scan id larger than startId to find smallest record (included startId)
  
  @param startId
  @param sortFlds
  @param sortDirs
  @return the id of smallest record