Micro-optimisation for exports

Give priority to prefixes with many extensions that take longer to export
first, so multi-threading is used longer.

Change-Id: I6d937e4cd08db2c2e487dff026066297509d622b