Order attachments by path