add priority to assets
Merge pull request #1946 from versh23/assets-priority

add priority to assets
Slight change to #1946: Always sort, because the overhead is minimal.

Thanks, @versh23