How to sort attachment files dynamically according to their names and condition?

SendEmailReport.xaml (42.6 KB)
Here i want to send image file according to the weather range available in email template (email ranges are also mentioned in else if where i sort email content.