Created
August 21, 2024 20:45
-
-
Save Asikur22/0fd25612a72d8d231920b2e3b273d1dc to your computer and use it in GitHub Desktop.
JS Object Sorting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let sorted_locations = searched_locations.sort( (a, b) => a.distance - b.distance ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment