All the 'sort by top' options are made available for single clicking. And it actually looks good too.
The initial idea came from another script with the same purpose.First I wanted to modify the placement of new menu buttons it adds, but the end r###lt turned to be a complete rewrite.See the screenshot: