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

Feature request: Natural sorting for product attributes #1158

Closed
stefanmuellerdo opened this issue Aug 7, 2024 · 2 comments
Closed

Feature request: Natural sorting for product attributes #1158

stefanmuellerdo opened this issue Aug 7, 2024 · 2 comments
Assignees
Milestone

Comments

@stefanmuellerdo
Copy link

Feature Request: Natural Sorting for Product Attributes

Summary:
Implement natural sorting for product attributes in Smartstore to ensure a more intuitive and user-friendly automatic standard sorting order for alphanumeric strings. without having to set up the sort order manually in the attribute details.

https://en.wikipedia.org/wiki/Natural_sort_order

autosorted

Description:
Currently, product attributes in Smartstore are sorted using standard lexicographical order.

This can lead to unintuitive sorting results, especially when dealing with strings containing numbers.

For instance, the current sorting might order "1", "11", "2", which is not ideal for user experience.

Natural sorting would arrange these values as "1", "2", "11", reflecting a more logical numerical progression.

Benefits:

  • Improved user experience: Users will find it easier to navigate and find items with correctly ordered attributes.
  • Enhanced data presentation: More intuitive sorting will make product listings and attribute filtering more readable and logical.
  • Competitive advantage: This feature can be highlighted as a user-centric enhancement, setting Smartstore apart from competitors.

Natural Sorting is standard in modern OS, like MacOS file lists. https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemDetails/FileSystemDetails.html

Has been reported by a store operator & ERP partner.

@stefanmuellerdo
Copy link
Author

thanks !!!

@muratcakir muratcakir changed the title Feature Request: Natural Sorting for Product Attributes Feature request: Natural sorting for product attributes Aug 8, 2024
@mgesing
Copy link
Contributor

mgesing commented Aug 19, 2024

Some notes. NATURAL_SORT_KEY is not supported by T-SQL. Only to be used in certain cases for materialized data. Should be avoided on database side for performance reasons. Link.

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

3 participants