Coin Age Priority was the original bitcoin block template algorithm, introduced in v0.3.14, and selects transactions based on the age and value of their inputs.

Prior to that, transactions were added from the mempool on a first-come-first serve basis.