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

Need some help with ordering the news articles #3786

Closed
MaartenvandeWiel opened this issue Jul 3, 2023 · 4 comments
Closed

Need some help with ordering the news articles #3786

MaartenvandeWiel opened this issue Jul 3, 2023 · 4 comments

Comments

@MaartenvandeWiel
Copy link

Disclaimer

Yes

Sample

https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-news

Contributor(s)

hugoabernier

Question

I'm new to SharePoint framework and developing.
I've started with the React-News webpart and made some adjustments. This is working well so far.
Unfortunately the news gets shown in random order (refreshing the page will give different order results)
I'd like to show the news articles in a chronological order, based on FirstPublishedDate field in descending order.
I've tried to change SPServices.tsx and added the row ".orderBy("FirstPublishedDate", false)" (between row 18 and 19, but this seems not to work.

Should I change it somewhere else? Thanks in advance for the help.

@ghost
Copy link

ghost commented Jul 3, 2023

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@github-actions
Copy link

Wrong or missing contributor @mentions

Thank you for your submission, but you appear to have forgotten to @mention the sample contributor(s).

To help increase your chances of getting assistance from the original contributors of the sample, you should make sure to @mention the actual contributors (and not the repository maintainers).

Please note that the sample contributors will not get notified about this issue unless you update this issue accordingly.

You can find the contributors of each sample in the sample's README.md, under the aptly-named Contributors section.

We'll automatically close this issue in 7 days unless you update the issue.

For more information on how to create a good issue, refer to our wiki for more information: How to Create Good Issues

@github-actions
Copy link

Please note that this issue will be closed within 24 hours because it has been flagged as having invalid authors. Read the guidance and @mention the authors so they can respond to you.

@github-actions github-actions bot added the Stale label Jul 19, 2023
@github-actions
Copy link

Closing this issue due to lack of response. Feel free to open a new issue, but make sure to follow the guidance on how to create good issues and @mention the authors so they can respond to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants