3
votes
Vote UpVote

delphi – Sorting TDictionary by a key of Integer in ascending order – Stack Overflow

The Wiert Corner – Great answer on [WayBack] delphi – Sorting TDictionary by a key of Integer in ascending order – Stack Overflow by J… comes down to this: var LDictionary : TDictionary<Integer, string>; LArray : TArray<Integer>; ... LArray := LDictionary.Keys.ToArray(); TArray.Sort<Integer>(LArray); I was trying the wrong direction (functional approach like LArray := LDictionary.Keys.ToArray.Sort(); ), but the above procedural solution works. Members used: [WayBack] Generics.Collections.TDictionary.Keys (introduced in Delphi 2009) [Archive.is] ...
Favorite? Off-Topic? jpluimers @ 2019-05-30 07:04

Statistics

Visits: 189
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Michał Rajewicz
Philnext
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)