Skip to content

Commit

Permalink
Fix sorting of feature collections, #1034.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwod committed Apr 11, 2022
1 parent fb7cc09 commit 53dd367
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions new-client/src/models/MapClickModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,11 @@ export default class MapClickModel {
}
}

// Sort the feature collections themselves using the displayName property
featureCollections.sort((a, b) =>
a.displayName.localeCompare(b.displayName)
);

return featureCollections;
}

Expand Down

0 comments on commit 53dd367

Please sign in to comment.