Skip to Content Skip to Menu

List Order

  • pipermac
  • pipermac
  • OFFLINE
  • Posts: 70
  • Thanks: 1
  • Karma: 0
9 years 11 months ago #253808 by pipermac
List Order was created by pipermac
How would I display a list in a specific order?

an Example would be to display based on a specific field value.So display users that have one values first , another value second, etc etc.

Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48502
  • Thanks: 8285
  • Karma: 1444
9 years 11 months ago #253811 by krileon
Replied by krileon on topic List Order
Edit your list within CB > List Management and adjust what fields to sort by under the Sorting tab. For example you can select to sort ascending by the firstname then descending by the last name, etc...


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • pipermac
  • pipermac
  • OFFLINE
  • Posts: 70
  • Thanks: 1
  • Karma: 0
9 years 11 months ago #253818 by pipermac
Replied by pipermac on topic List Order
I realize that but it does not allow for a specific order. I suspect this can be done via the Advanced tab but I have no idea what I would put in there.

If the field I am sorting by has a set list of values and I want to sort by those values in a predifned order. ie Value3 first, value6 next, value 1 next etc etc.

Do you have any documentation or examples of how the Advanced sorting works?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48502
  • Thanks: 8285
  • Karma: 1444
9 years 11 months ago #253840 by krileon
Replied by krileon on topic List Order

If the field I am sorting by has a set list of values and I want to sort by those values in a predifned order. ie Value3 first, value6 next, value 1 next etc etc.

Select your field and set it to sort by Ascending. Value 3, Value 6, Value 1 does not make any sense to ascending or descending ordering. You'd need some strange custom non-indexed ORDER BY added to the query to do that. Using Ascending and Descending you get results like Value 1, Value 3, then Value 6 or Value 6, Value 3, then Value 1.

Do you have any documentation or examples of how the Advanced sorting works?

No, advanced sorting adds directly to the database query using "ORDER BY".


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • pipermac
  • pipermac
  • OFFLINE
  • Posts: 70
  • Thanks: 1
  • Karma: 0
9 years 11 months ago #253904 by pipermac
Replied by pipermac on topic List Order
I know!

Its the Query that I would need for the Advanced sorting!

I just have no idea what to put in the Query! that is what i am asking for.

What do I put in the Advanced box to accomplish what I want?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48502
  • Thanks: 8285
  • Karma: 1444
9 years 11 months ago #253907 by krileon
Replied by krileon on topic List Order
You need to write the needed MYSQL for an ORDER BY that'll order as you're wanting. Please see the below links for MYSQL tutorials and documentation.

MYSQL Documentation:
dev.mysql.com/doc/refman/5.6/en/index.html

MYSQL Tutorial:
www.w3schools.com/sql/default.asp

Advanced sorting adds directly to the userlist database query (you can omit ORDER BY as that's automatically added).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum