Gmail is based on Search and not Sort so here are some ways you can sort Gmail messages:
To sort your Inbox by Attachment size, go to the Search field at the top of the window and enter size:5M. Press Enter/Return.
To sort your Inbox by filename operator, go to the Search field at the top of the window and enter filename:mov (or mpg, mpeg, avi, wmv, docx, xlsx, pptx, or pdf).
Only good for emails currently being viewed.
Go to your Inbox and open your Developer Toolbox using Chrome:
* Ctrl + Shift + I (Windows)
* CMD + Opt + I (Macintosh)
The Developer Tools window will open to the right of your Inbox.
!function(){functione(e){var t,a,n,r,l=e.getElementsByTagName("td");for(n=0;n<l.length;n++){if("xY a4W"==l[n].className)for(t=l[n].getElementsByTagName("div"),r=0;r<t.length;r++)if("y6"==t[r].className&&(a=t[r].getElementsByTagName("span"),a.length))return a[0].innerHTML;if(l[n].hasAttribute("role")&&"link"==l[n].getAttribute("role"))for(t=l[n].getElementsByTagName("div"),r=0;r<t.length;r++)if("y6"==t[r].className&&(a=t[r].getElementsByTagName("span"),a.length))return a[0].innerHTML}return""}functiont(e,t){return e=e[0].toLowerCase(),t=t[0].toLowerCase(),t>e?-1:e>t?1:0}functiona(a){var n=Array.prototype.slice.call(a.getElementsByTagName("tr"),0);if(n.length){for(var r=n[0].parentNode,l=[],g=0;g<n.length;g++)l[g]=[e(n[g]),n[g]];for(l=l.sort(t),g=0;g<l.length;g++)r.appendChild(l[g][1])}}for(var n=document.getElementsByTagName("table"),r=0;r<n.length;r++)if("F cf zt"==n[r].className){a(n[r]);break}}();
Articles can be assigned labels quite easily. On the left window under Compose you you can create labels by clicking the Create New Label link. To assign a label (e.g., Test Label) to an email,
The email will show the label in the Subject line and will continue to appear in your Inbox. To see only emails with a specific label, move your cursor to the left menu and click the label (e.g., Test Label) to see all the email.
Hover over Inbox until you see a drop-down arrow. Click the drop-down arrow and select the way you would like to receive your email.
Create any labels you may want to have for your Inbox.
To see the email click on the label you created (located under Compose) and you will see the email.