I have a list of URL and its respective favourite counts obtained from firebase database appended into an array of dictionaries as such:
dictionaryArray = [[1: URL1], [2: URL2], [1: URL3]]
I understand that we can sort the array of dictionaries by using .sort but that removes dictionaries with similar keys like in this case.
how do I sort it such that I get an array of the url ordered by their keys to this:
urlArray = [URL2, URL1, URL3]
since URL2 has the higher key whereas URL1 and URL3 have similar keys