Answer the question
In order to leave comments, you need to log in
Correct sorting of numeric digits in Dictionary?
Greetings.
Who faced? I would be very grateful
How to correctly sort so that first there are hundreds, and after them thousands?
1. I get an array by Api,
var allEventsSort: [String: AllEvents] = [:]
allEventsSort = articles.events
let sortedList = allEventsSort.sorted{ $0.0 > $1.0 }.map{$0.0}
handlerNews.events = sortedList
sorted for (key) - 4047:
sorted for (key) - 4045:
sorted for (key) - 4025:
sorted for (key) - 4024:
sorted for (key) - 4023:
sorted for (key) - 402:
sorted for (key) - 4013:
sorted for (key) - 4009:
sorted for (key) - 400:
sorted for (key) - 399:
sorted for (key) - 396:
sorted for (key) - 394:
sorted for (key) - 392:
sorted for (key) - 383:
sorted for (key) - 380:
sorted for (key) - 3743:
sorted for (key) - 374:
sorted for (key) - 3737:
sorted for (key) - 3735:
sorted for (key) - 3733:
sorted for (key) - 3731:
sorted for (key) - 3727:
sorted for (key) - 3614:
sorted for (key) - 3612:
sorted for (key) - 3508:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question