Keyword

Secondary sorting of K2 items

  • Ilya Kushliansky
  • Ilya Kushliansky's Avatar Topic Author
  • Offline
  • New Member
More
8 years 8 months ago #146046 by Ilya Kushliansky
Secondary sorting of K2 items was created by Ilya Kushliansky
I am trying to find a way to sort items by title AFTER they are sorted by FEATURED. In my k2 category, the soring is FEATURED FIRST. But other (non featured) items don't display by title after the featured ones.

Where can I set secondary (tertiary) sorting of K2 items?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #146108 by Krikor Boghossian
Replied by Krikor Boghossian on topic Secondary sorting of K2 items
By default this is not possible.
You can however 'hack' the itemlist model and add a secondary ORDER BY option ( stackoverflow.com/questions/10212430/mysql-double-sort ). Just be extra careful and backup before editing the file.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Ilya Kushliansky
  • Ilya Kushliansky's Avatar Topic Author
  • Offline
  • New Member
More
8 years 8 months ago #146333 by Ilya Kushliansky
Replied by Ilya Kushliansky on topic Secondary sorting of K2 items
ok, could you tell me what secondary sorting criteria does joomla apply when the category is set to Featured First? It seems that Joomla looks at the subcategory sorting (hotels has subcategories 5-star hotels, then 4-star hotels etc...). But what if both 5-star hotels are featured? Will Joomla then look at their name and sort alphabetically?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #146445 by Krikor Boghossian
Replied by Krikor Boghossian on topic Secondary sorting of K2 items
It would sort them by ID, this means in general that the newest item will appear first.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #151474 by Emmanouil
Replied by Emmanouil on topic Secondary sorting of K2 items

Krikor wrote: It would sort them by ID, this means in general that the newest item will appear first.


Hi krikor,

is it possible to change this behavior? So it will sort them alphabetical insteed of ID.

This would be a nice solution for displaying featured items first and all the rest alphabetical.

Thanks!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum