[Skip to main content](#vessel-content)

#   Sorting Characteristics by Arbitrary values

##

- **[evolution](/forum/user/8324-evolution "View evolution's Profile")**
- [![evolution's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar8324.png)](/forum/user/8324-evolution "View evolution's Profile") Topic Author
- [ Offline](/forum/user/8324-evolution)

Less More

- Posts: 35
- Thank you received: 0
-
-

14 years 4 months ago [\#58899](#58899) by [evolution](/forum/user/8324-evolution "View evolution's Profile")  *[Sorting Characteristics by Arbitrary values](/forum/4-how-to/58899-sorting-characteristics-by-arbitrary-values#58899 "On the front-end, when a product has been selected and the description and characteristics, etc, are displayed, it appears that characteristics are displayed in ID sequence. For example, if you have...")* was created by *[evolution](/forum/user/8324-evolution "View evolution's Profile")*

On the front-end, when a product has been selected and the description and characteristics, etc, are displayed, it appears that characteristics are displayed in ID sequence. For example, if you have “Small”, “Medium” and “Large”, if you create the characteristics in that sequence, then you are fine. If you later add “Very Small”, it appears after “Large” in the drop-down list, where logically it should appear before "Small".

ID 1 = Small
ID 2 = Medium
ID 3 = Large
ID 4 = Very Small

You could sort alphabetically by name, but results are not guaranteed to be in the correct logical sequence.

Large
Medium
Small
Very Small

Would it be possible to add a “Sort Value” to the characteristics screen to allow more detailed control over the characteristics drop-down display?

Ultimately, it would be best practice to create a new column “characteristic_sort_value” in the "&lt;mysite&gt;_hikashop_characteristic" table to hold this value. I looked into “Custom Fields”, but there was not an option for adding a custom field to a characteristic.

I’ve noticed that in the table "&lt;mysite&gt;_hikashop_characteristic", all characteristics have a “characteristic_alias” column that is only used if the characteristic is a parent. If the characteristic is a child, this column could be used to store a sort value.

Alias 010 = Small
Alias 050 = Medium
Alias 090 = Large
Alias 005 = Very Small
Alias 065 = Big Medium
Alias 035 = Small Medium

Thoughts?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU4ODk5LXNvcnRpbmctY2hhcmFjdGVyaXN0aWNzLWJ5LWFyYml0cmFyeS12YWx1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86592
- Thank you received: 14334
-
-

14 years 4 months ago [\#58941](#58941) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Sorting Characteristics by Arbitrary values](/forum/4-how-to/58899-sorting-characteristics-by-arbitrary-values#58941 "On the front-end, when a product has been selected and the description and characteristics, etc, are displayed, it appears that characteristics are displayed in ID sequence. For example, if you have...")*

We will add a new column in the table and have the ordering based on it.
It will actually be in next version of HikaShop in August.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU4ODk5LXNvcnRpbmctY2hhcmFjdGVyaXN0aWNzLWJ5LWFyYml0cmFyeS12YWx1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evolution](/forum/user/8324-evolution "View evolution's Profile")**
- [![evolution's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar8324.png)](/forum/user/8324-evolution "View evolution's Profile") Topic Author
- [ Offline](/forum/user/8324-evolution)

Less More

- Posts: 35
- Thank you received: 0
-
-

14 years 4 months ago [\#58981](#58981) by [evolution](/forum/user/8324-evolution "View evolution's Profile")  Replied by *[evolution](/forum/user/8324-evolution "View evolution's Profile")* on topic *[Re: Sorting Characteristics by Arbitrary values](/forum/4-how-to/58899-sorting-characteristics-by-arbitrary-values#58981 "On the front-end, when a product has been selected and the description and characteristics, etc, are displayed, it appears that characteristics are displayed in ID sequence. For example, if you have...")*

Thanks Nicolas.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU4ODk5LXNvcnRpbmctY2hhcmFjdGVyaXN0aWNzLWJ5LWFyYml0cmFyeS12YWx1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evolution](/forum/user/8324-evolution "View evolution's Profile")**
- [![evolution's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar8324.png)](/forum/user/8324-evolution "View evolution's Profile") Topic Author
- [ Offline](/forum/user/8324-evolution)

Less More

- Posts: 35
- Thank you received: 0
-
-

14 years 4 months ago [\#58982](#58982) by [evolution](/forum/user/8324-evolution "View evolution's Profile")  Replied by *[evolution](/forum/user/8324-evolution "View evolution's Profile")* on topic *[Re: Sorting Characteristics by Arbitrary values](/forum/4-how-to/58899-sorting-characteristics-by-arbitrary-values#58982 "On the front-end, when a product has been selected and the description and characteristics, etc, are displayed, it appears that characteristics are displayed in ID sequence. For example, if you have...")*

If possible, please include the ability to import the sort value via CSV.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU4ODk5LXNvcnRpbmctY2hhcmFjdGVyaXN0aWNzLWJ5LWFyYml0cmFyeS12YWx1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86592
- Thank you received: 14334
-
-

14 years 4 months ago [\#59009](#59009) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Sorting Characteristics by Arbitrary values](/forum/4-how-to/58899-sorting-characteristics-by-arbitrary-values#59009 "On the front-end, when a product has been selected and the description and characteristics, etc, are displayed, it appears that characteristics are displayed in ID sequence. For example, if you have...")*

You can't import characteristics or characteristics values via CSV so there is no meaning in trying to import sorting values...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU4ODk5LXNvcnRpbmctY2hhcmFjdGVyaXN0aWNzLWJ5LWFyYml0cmFyeS12YWx1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evolution](/forum/user/8324-evolution "View evolution's Profile")**
- [![evolution's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar8324.png)](/forum/user/8324-evolution "View evolution's Profile") Topic Author
- [ Offline](/forum/user/8324-evolution)

Less More

- Posts: 35
- Thank you received: 0
-
-

14 years 4 months ago [\#59011](#59011) by [evolution](/forum/user/8324-evolution "View evolution's Profile")  Replied by *[evolution](/forum/user/8324-evolution "View evolution's Profile")* on topic *[Re: Sorting Characteristics by Arbitrary values](/forum/4-how-to/58899-sorting-characteristics-by-arbitrary-values#59011 "On the front-end, when a product has been selected and the description and characteristics, etc, are displayed, it appears that characteristics are displayed in ID sequence. For example, if you have...")*

Apologies Nicolas.

I confused myself because you can include characteristics on a product upload, but those characteristics need to be pre-defined prior to upload.

Thanks again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU4ODk5LXNvcnRpbmctY2hhcmFjdGVyaXN0aWNzLWJ5LWFyYml0cmFyeS12YWx1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86592
- Thank you received: 14334
-
-

14 years 4 months ago [\#59053](#59053) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Sorting Characteristics by Arbitrary values](/forum/4-how-to/58899-sorting-characteristics-by-arbitrary-values#59053 "On the front-end, when a product has been selected and the description and characteristics, etc, are displayed, it appears that characteristics are displayed in ID sequence. For example, if you have...")*

No problem ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU4ODk5LXNvcnRpbmctY2hhcmFjdGVyaXN0aWNzLWJ5LWFyYml0cmFyeS12YWx1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.059 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
