I use labels extensively in my Gmail inbox. Is there any way to sort by label? Seems like that could be quite useful.
Impossible via the Web UI, and difficult with IMAP (coding).
Label are considered like folder on the first level of the IMAP (blured on the picture).
Messages can have several labels, some don't have any.
Sorting Email per label would required to browse the "All Mail" to create a list of all the emails, browse every single label folder to obtain the list of emails. And then process the data to sort per label. And all that via IMAP.
I'm not even thinking about how to sort emails with several labels.
It's too much effort for a poor result.