|  | It is now possible to use a formula to determine the first or last record within a collection based on one or more fields that you can sort on. With a minus sign in the formula, the field is sorted in descending order. Examples to show a certain operation PreC on a production order subassembly: 
    [prdr_prbv.first(prbv_volgorde).prbv_num]
      
        sort ascending by prbv_volgordethe first record of this[prdr_prbv.last(prbv_volgorde).prbv_num]
      
        sort ascending by prbv_volgordethe last record of this[prdr_prbv.last(prbv_volgorde,bwrk_num).prbv_num]
      
        sort ascending by prbv_volgordesort in ascending order by bwrknumthe last record of this[prdr_prbv.last(prbv_volgorde,-bwrk_num).prbv_num]
      
        sort ascending by prbv_volgordesort in descending order by bwrk_numthe last record of this[prdr_prbv.where(prbv_uitbesteden=true).first(prbv_volgorde).prbv_num]
      
        filter by prbv_uitbesteden=truesort ascending by prbv_volgordethe first record of this[prdr_prbv.last(prbv_tijd_per_stuk,prbv_instel_tijd).prbv_num]
      
        sort ascending by prbv_tijd_per_stuksort in ascending order by prbv_instel_tijdthe last record of this[prdr_prbv.first(-prbv_tijd_per_stuk,-prbv_instel_tijd).prbv_num]
      
        sort descending by prbv_tijd_per_stuksort in descending order by prbv_instel_tijdthe first record of this |