Sort attachments in list