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 models alphabetically (or allow multiple sorting options) #748

Closed
ajmnz opened this issue Jul 22, 2021 · 2 comments
Closed

Sort models alphabetically (or allow multiple sorting options) #748

ajmnz opened this issue Jul 22, 2021 · 2 comments
Assignees
Labels
kind/improvement An improvement to existing feature and code.
Milestone

Comments

@ajmnz
Copy link

ajmnz commented Jul 22, 2021

Right now, I'm unable to tell which criteria does Prisma Studio follow for sorting the list of models. Search is useful, but having your models sorted alphabetically or by record count would help a lot and improve UX.

@sdnts
Copy link
Contributor

sdnts commented Jul 23, 2021

Hey @ajmnz, models should currently be ordered the same as your schema, but I agree that having them ordered alphabetically would be an improvement. I'll do that and let you know!

@sdnts sdnts added this to the 2.28.0 milestone Jul 23, 2021
@sdnts sdnts added the kind/improvement An improvement to existing feature and code. label Jul 23, 2021
@sdnts sdnts self-assigned this Jul 23, 2021
@sdnts
Copy link
Contributor

sdnts commented Jul 26, 2021

I've just implemented this, this should be out in tomorrow's Prisma CLI release!

In the All Models section, models will now be sorted alphabetically, but the ones in the Recent section are ordered by timestamp of last use.

@sdnts sdnts closed this as completed Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement An improvement to existing feature and code.
Projects
None yet
Development

No branches or pull requests

2 participants