-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Wrong or missing contributor @mentionsThank 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 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 |
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. |
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. |
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.
The text was updated successfully, but these errors were encountered: