<div>I know this was already covered but to simplify the explination for the beginner:</div>
<div> </div>
<div>Sort is automatic for Dictionaries.</div>
<div> </div>
<div>| dict |<br>dict := Dictionary new.<br>dict at: '3c' put: 'object 3c'.<br>dict at: '1a' put: 'object 1a'.<br>dict at: '2b' put: 'object 2b'.<br>dict </div>
<div> </div>
<div>Evaluating the code with "Print It" will respond:</div>
<div>a Dictionary('1a'->'object 1a' '2b'->'object 2a' '3c'->'object 3a' )</div>
<div> </div>
<div>----------------------</div>
<div> </div>
<div>A useful capability of Dictionaries is merging files by key.</div>
<div>Add old objects then overwriting with new objects and sorting is automatic.</div>
<div> </div>
<div>| dict |<br>dict := Dictionary new.<br>dict at: '3c' put: 'object 3c'.<br>dict at: '1a' put: 'object 1a'.<br>dict at: '3c' put: 'new object 3c'.<br>dict </div>
<div> </div>
<div> a Dictionary('1a'->'object 1a' '3c'->'new object 3c' )</div>
<div> </div>