lukaskubanek / OrderedDictionary

Ordered dictionary data structure implementation in Swift
MIT License
201 stars 63 forks source link

Add method for converting a Dictionary to OrderedDictionary #39

Closed lukaskubanek closed 6 years ago

lukaskubanek commented 6 years ago

Dictionary.sorted(by areInIncreasingOrder: (Element, Element) -> Bool) -> OrderedDictionary<Key, Value>

lukaskubanek commented 6 years ago

For implementation see @maicki's fork: https://github.com/maicki/OrderedDictionary/commit/37ace5f3873122dc5155c2dacd50b813be5001b5

maicki commented 6 years ago

I created branch for it, PR will follow in a bit: https://github.com/maicki/OrderedDictionary/tree/maicki/dictionary-to-ordereddictionary

lukaskubanek commented 6 years ago

Thanks, no need to create a PR, I'm going to add it now.