I want to sort the labels in my own order instead of the default abc order, so that, for example, the label named bills should come up first.
Any way to do that?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityI want to sort the labels in my own order instead of the default abc order, so that, for example, the label named bills should come up first.
Any way to do that?
I see two options. One of these may meet your need:
Use the old trick of starting the label name with an underscore. That puts it at the top of the list. If you have more labels you want near the top, it will put them in alphabetical order. You would also use a combination of underscore and a number to force the order you want so that _1Zoo will come before _2bills
Use multiple inboxes. This will let you put the extra inbox above, below or to the right of your main inbox. I use multiple inbox to display specific labels. Use the search query "is:bills" (without the quotes) to put all emails with that label in the extra inbox. You turn on multiple inboxes under the labs section of the settings page.
!
$
*
) to group some labels together.
>
looks best, but that's obviously a personal choice.
Gmail sorts in ASCII table order. This appears to be alphabetical order because the in the table, the numbers come before the upper case and the lower case come after those. But there are many printable characters in between. You can use them as prefixes to get clever with the sort order.
The ASCII characters in order are:
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~
The ASCII table can be printed like so:
$ printf '%b' $(printf '\\x%x' {33..126})
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~%
$ printf '%b' $(printf '\\x%x' {33..47})
!"#$%&'()*+,-./
$ printf '%b' $(printf '\\x%x' {48..57})
0123456789
$ printf '%b' $(printf '\\x%x' {58..64})
:;<=>?@
$ printf '%b' $(printf '\\x%x' {65..90})
ABCDEFGHIJKLMNOPQRSTUVWXYZ
$ printf '%b' $(printf '\\x%x' {91..96})
[\]^_`
$ printf '%b' $(printf '\\x%x' {97..122})
abcdefghijklmnopqrstuvwxyz
$ printf '%b' $(printf '\\x%x' {123..126})
{|}~