Dust.js object iterator with key sorting support