I am using play framework 2.3.8 and I need to iterate a java HashMap which I do like this in the template:
@(city: String, intents: java.util.Map[Intent, TimeTable.Row], lang: Lang)
@for((item, index) <- intents.entrySet.zipWithIndex) {
<li>Item @index </li>
}
The problem now is that I got indexes as follows:
Item 7 Item 17 Item 22 Item 8 Item 28 Item 23 Item 33 Item 18 Item 5 Item 25 Item 11 Item 16
How is it possible to get ordered indices and why is the list here unordered?