Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   delphi – Sorting TDictionary by a key of Integer in ascending order – Stack Overflow (https://www.delphipraxis.net/200834-delphi-%96-sorting-tdictionary-key-integer-ascending-order-%96-stack-overflow.html)

DP News-Robot 30. Mai 2019 07:11

delphi – Sorting TDictionary by a key of Integer in ascending order – Stack Overflow
 
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 […]

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:11 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz