make sure languages are processed with highest priority last. closes #1574