Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6321295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:07:29+00:00 2026-05-24T16:07:29+00:00

My site has a number of dropdown lists that require an option called Other.

  • 0

My site has a number of dropdown lists that require an option called “Other”. Each dropdown has its own table to hold the values, and each of those tables has an entry called “Other” to be able to track the selection of that option.

The problem is that I am blanket sorting the options alphabetically when I retrieve them from the DB, but that puts the “Other” option somewhere in the middle of the list. I’d like it to always be at the bottom. Does anyone have a solution other than using an If check in the View to see if I’m printing “Other”, then just tacking it onto the end?

I’m open to using the SQL query to put it at the bottom, or some other way on the server or view. Thanks.

EDIT: To answer the first couple questions, I’m using SQL Server 2005 and ASP.NET MVC 1. I don’t mind tacking it onto the end, but it means If checks in something like 5 different places on my site. If I can find a way to sort it at the source (SQL) or something more scalable, that would be ideal.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:07:29+00:00Added an answer on May 24, 2026 at 4:07 pm

    In sql you could order it like this:

    order by
    case when value = 'Other' then 1 else 0 end,
    value
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Each article of my site has a unique ID number. When a user clicks
I'm working on a site that has a large number of color styles, around
I'm making a Spree site that has links for changing the number of products
I have a site which has a number (20 or so) web parts. Each
My site has an input box, which has a onkeydown event that merely alerts
My site has several listing pages and on each page, I'd like to enable
My PHP site has header,body,footer files that are included into the INDEX.PHP page. On
Hi I have a site which has a number of affiliate links, I would
I have a website that has a number of URLs that people use to
I have two entities in Doctrine 2.1: Category and Site each category has many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.