Sort Trash by color

Among the 7000+ emails in my Trash folder are some that have been colored by SpamSieve. Is there any way under Sierra to sort my Task folder by color?

Normally, SpamSieve puts spam messages in the Spam mailbox, so I presume you’ve selected the Trash instead. macOS 10.12 does not support sorting by color, but you can set SpamSieve to assign colored flags and then sort by flag color, or put messages with different colors in different mailboxes.