External sorting using replacement selection or natural selection

Hi

Is there anybody know how to write pascal code on
external sorting such as replacement selection and natural selection ?

Thanks.