I sort my rendering queue based on these tests:

http://www.circlesoft.org/pages.php?pg=kbasepage&id=12

So vertex shaders have priority in the sorting, reducing their amount of calls.