attachment: Fix reversion in attachment sorting by age.