How to sort this dictionary by distance eg:
[(id: 1, type: .normal, distance: 10), (id: 2, type: .inter, distance: 10), (id: 3, type: .inter, distance: 80),