I have a key of dictionary like below:
{% set ReportList = {
'T00004' : {'Title': 'Letter of Confirmation Loan'},
'T00002' :{'Title': 'Repayment Schedule'},
'T00010': {'Title': 'Letter of Hypothec'} }
%}
I want to loop through this dictionary but I want to keep the order of dictionary as it was without sorting, so it should be in order like this T00004, T00002, T00010
. Therefore, I tried the following loop.
{%for key in ReportList %}
{% set value = ReportList.get(key,{})%}
<tr class="link" onclick="CustomClickView('{{value.Title}}','Template/{{key}}')">
<td width="10%">{{key}}</td>
<td width="90%">{{value.Title}}</td>
</tr>
{%endfor%}
However, it result as T00002, T00004, T00010
orderly that was not as I expected above.
How I can keep the ordering of key dictionary without sorting in loop? Thanks.