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

Skill Experience Year Not in Timeline Order #31

Open
EARider23 opened this issue Jul 23, 2022 · 5 comments
Open

Skill Experience Year Not in Timeline Order #31

EARider23 opened this issue Jul 23, 2022 · 5 comments

Comments

@EARider23
Copy link

I Create TimeLine of my work in sanity database of experience section. if i add 2022 first. After i will add 2018 it will goes on top of 2022. Next i add 2019 it will go top of 2018. i want to make it order-wise. how to do that ?
Screenshot 2022-07-23 133733

@rahulmore01
Copy link

send me code of your skills.jsx file , cause im having trouble where im not able to see added info other than year.
Uploading Screenshot 2022-07-23 at 9.37.29 AM.png…

@EARider23
Copy link
Author

@PattyCoding123
Copy link

What I did to sort the array was just by calling the sort method on the experiences array and passing a callback function
which compared the year property.

sorting skills
.

@rahulmore01
Copy link

What I did to sort the array was just by calling the sort method on the experiences array and passing a callback function which compared the year property.

sorting skills .

bro please give me your insta or fb or linked in. i want to discuss an issue

@asd1495
Copy link

asd1495 commented Nov 10, 2022

const query = '*[_type == "experiences"] | order(year asc)';

This should solve the problem

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

No branches or pull requests

4 participants