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

Perform a smarter sort algorithm #12

Closed
manuyavuz opened this issue Oct 28, 2015 · 1 comment
Closed

Perform a smarter sort algorithm #12

manuyavuz opened this issue Oct 28, 2015 · 1 comment

Comments

@manuyavuz
Copy link
Member

Currently, all found pods are printed in alphabetical order. New sorting algorithm should have the following ordering:

  1. Pods whose name exactly matches with query
  2. Pods whose name matches with query
  3. Pods whose summary matches with query
  4. Pods whose description matches with query
  5. Pods whose authors matches with query

Is there any other case I missed?

@manuyavuz
Copy link
Member Author

I will perform sorting only using pod name. The reason is that to get other data, specification of the pods have to be created reading from the file, and it will definitely be slow for large number of found pods.

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

1 participant