ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Sort By and Custom Fields

December 02, 2010 6:27am

Subscribe [3]
  • #1 / Dec 02, 2010 6:27am

    Can anyone tell me if the ‘orderby’ parameter sorts alphabetically in all cases.

    If a custom field is used which contains a number is the sorting numeric?

    I am using a custom field to control the display order of images and the field contains numbers.

    Many thanks, Jack

  • #2 / Dec 02, 2010 5:16pm

    Ingmar

    29245 posts

    The exact sort order is defined by your db collation, but in most cases it is alphabetically, yes. What issues, if any, are you having exactly?

  • #3 / Dec 03, 2010 5:42am

    Hi Ingmar,

    I’m using a custom field to control the order of display in an image gallery.

    I assumed that integers would be sorted numerically but there not.

    I did post into the EE 2.0 forum as well and have resolved my issue there.

    Thanks for your reply.

    Best…Jack

  • #4 / Dec 03, 2010 3:37pm

    Sue Crocker

    26054 posts

    EE1.x only has text fields by default, but glad you have a solution. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases