Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort credits by frequency of occurences #10141

Merged
merged 5 commits into from
Feb 25, 2022
Merged

Conversation

j9liu
Copy link
Contributor

@j9liu j9liu commented Feb 24, 2022

Closes #10128.

This PR makes CreditsDisplay sort its credits by their number of occurrences, with more frequently occurring credits appearing first. I added a tileset with duplicate copyrights (a modified version of the one added in #10138) to test this, which when put in a Sandcastle results in the following:

image

@j9liu j9liu requested a review from lilleyse February 24, 2022 22:00
@cesium-concierge
Copy link

Thanks for the pull request @j9liu!

  • ✔️ Signed CLA found.
  • CHANGES.md was not updated.
    • If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.

Source/Scene/CreditDisplay.js Outdated Show resolved Hide resolved
Source/Scene/CreditDisplay.js Outdated Show resolved Hide resolved
Source/Scene/CreditDisplay.js Outdated Show resolved Hide resolved
@lilleyse
Copy link
Contributor

Thanks @j9liu!

@lilleyse lilleyse merged commit 7e076a0 into main Feb 25, 2022
@lilleyse lilleyse deleted the sort-credits-by-frequency branch February 25, 2022 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sort credits based on the number of occurrences
3 participants