SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Sort Options

  1. #1
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,914
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Sort Options

    I am adding the ability to sort Article Summaries on a page, but want to keep sorting simple.


    Questions:
    1.) Is it okay to combine Sort-Field and Sort-Order into one field?

    2.) If so, which of these options is easiest to understand...



    Option #1:

    Sort by:
    Code:
    Date (Newest to Oldest)
    Date (Oldest to Newst)
    Title (A to Z)
    Title (Z to A)
    Rating (Highest to Lowest)
    Rating (Lowest to Highest)

    Option #2:

    Sort by:
    Code:
    Date (Descending)
    Date (Ascending)
    Title (Ascending)
    Title (Descending)
    Rating (Descending)
    Rating (Ascending)

    Option #3:

    Sort by:
    Code:
    Date (<insert down arrow here>)
    Date (<insert up arrow here>)
    Title (<insert up arrow here>)
    Title (<insert down arrow here>)
    Rating (<insert down arrow here>)
    Rating (<insert up arrow here>)

    Option #4:

    Sort by:
    Code:
    Date (Newest 1st)
    Date (Oldest 1st)
    Title (A-to-Z)
    Title (Z-to-A)
    Rating (Highest 1st)
    Rating (Lowest 1st)

    Option #5:

    Sort by:
    Code:
    Date (??)
    Date (??)
    Title (??)
    Title (??)
    Rating (??)
    Rating (??)

    Sincerely,


    Debbie

  2. #2
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,914
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    190 views and no one has an opinion huh?

    Would it be better if I broke things out into two separate fields like...
    Code:
    Sort by		Direction
    --------	----------
    Date		Ascending
    Title		Descending
    Rank

    I figured users would appreciate only having to select one choice...

    Sincerely,


    Debbie

  3. #3
    SitePoint Addict bronze trophy mawburn's Avatar
    Join Date
    Apr 2014
    Posts
    259
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)
    Option 1 + 3

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,861
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Either two separate fields or if you take the single field approach then code it so that it can be used directly without needing to convert it - eg. date and date desc
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •